VisualizationMeshTools Global Function MakeLods
MakeLods( | | input, |
| | number_of_lods, |
| | lod_step, |
| | initial_sag, |
| | sag_approx, |
| | sag, |
| | output) |
-
Function to provide mesh simplification.
Role: This single function provides mesh simplification mechanism for both)
surfaces and solids. The number of level of details and the simplifica-
tion rate for each level are to be defined by the user.
- Solids : The global solid geometry will be modified and the
topology won't be left intact unless the simplification
ratios are extremely low.
- Surfaces: The surface edges are left unchanged at low ratios.
Only the inner surface parts will be modified. At higher
levels, boundary edges are being modified.
The number of returned lods may be different than the wanted one. The
simplification ratios can be different from the given values.
This function returns at least one level of detail for each input part,
when working normally. Some parts are too small to be simplified. In
this case, no level of details are ever computed.
The function returns sags defining the precision rate of each level of
detail. The user has to give the sag of the initial geometry to be
simplified.
Input parameters are made of CAT3DFaceGP parameters, converted into a
LodData structure:
- Parameters:
-
- input
- Pointer to the LodData structure.
- number_of_lods
- The number of wanted LOD's (will be used as output parameter too).
- lod_step
- The simplification ratio for each lod (defined by
a simplification percentage relative to the number
of triangles).
- initial_sag
- The precision of the given original geometry.
The simplification process will compute
an approximative sag from the tesselation when
the value is set to 1.
- sag_approx
-
Legal values:
- 0: Automatical sag computation is disabled.
- 1: Automatical sag computation is enabled.
Output parameters are the following:
- number_of_lods
- The real number of computed lods.
- sag
- Sag's of the different levels of detail.
- output
- Array of LodData of size.
<*output> is the adress to a pointer list to the
LodData, (*output)[i] is the adress of the i-th
lod information LodData.
- initial_sag
- When the is turned to 1, the value
of it is updated with the automatically computed sag.
- Returns:
-
Legal values:
1 in case of success
0 for failure
This object is included in the file: CATLevelOfDetail.h
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.