CFx SDK Documentation 2024 SP0
|
#include <wrTriangulationParams.h>
Public Member Functions | |
wrTriangulationParams (bool bNewTess=false) | |
bool | operator== (const wrTriangulationParams other) const |
Public Attributes | |
OdUInt32 | maxNumGridLines |
double | maxFacetEdgeLength |
double | normalTolerance |
double | surfaceTolerance |
double | gridAspectRatio |
OdUInt16 | BetweenKnots |
OdUInt32 | PointsPerEdge |
bool | bRecalculateSurfaceTolerance |
bool | bFastMode |
bool | bUseTesselation |
This container class holds ACIS triangulation (rendering) parameters. <group Other_Classes>
Default maxNumGridLines 10000
maxFacetEdgeLength 0
normalTolerance 15
surfaceTolerance 0
gridAspectRatio 0
PointsPerEdge 0
BetweenKnots 2
bRecalculateSurfaceTolerance false
Definition at line 49 of file wrTriangulationParams.h.
|
inline |
Default constructor. Sets the following default triangulation parameters:
Default maxNumGridLines 10000
maxFacetEdgeLength 0
normalTolerance 15
surfaceTolerance 0
gridAspectRatio 0
PointsPerEdge 0
BetweenKnots 2
bRecalculateSurfaceTolerance false
bUseTesselation false
If 'bNewTess' parameter is true, the constructors sets the following parameters:
Default maxNumGridLines 10000 maxFacetEdgeLength 0 normalTolerance 15 surfaceTolerance 0 gridAspectRatio 0 PointsPerEdge 0 BetweenKnots 2 bRecalculateSurfaceTolerance true bUseTesselation true
Definition at line 133 of file wrTriangulationParams.h.
|
inline |
Comparing operator for wrTriangulationParams class.
other | [in] A wrTriangulationParams object to be compared with. |
Definition at line 167 of file wrTriangulationParams.h.
OdUInt16 wrTriangulationParams::BetweenKnots |
Distance between knots. This parameter contains the number of additional points between knots; for NURB surfaces it contains number of additional isolines between knots.
Definition at line 83 of file wrTriangulationParams.h.
bool wrTriangulationParams::bFastMode |
Fast mode is much more faster, but generates more errors.
Definition at line 98 of file wrTriangulationParams.h.
bool wrTriangulationParams::bRecalculateSurfaceTolerance |
Recalculate surface tolerance in worldDraw calling virtual 'deviation' method.
Definition at line 93 of file wrTriangulationParams.h.
bool wrTriangulationParams::bUseTesselation |
Use new tesselation algo for surfaces.
Definition at line 103 of file wrTriangulationParams.h.
double wrTriangulationParams::gridAspectRatio |
Grid aspect ratio.
Definition at line 78 of file wrTriangulationParams.h.
double wrTriangulationParams::maxFacetEdgeLength |
Maximum facet edge length.
Definition at line 59 of file wrTriangulationParams.h.
OdUInt32 wrTriangulationParams::maxNumGridLines |
Maximum number of grid lines.
Definition at line 54 of file wrTriangulationParams.h.
double wrTriangulationParams::normalTolerance |
NormalTolerance allows to specify the tessellation quality of circular surfaces (such as Cone, Torus, Sphere or Cylinder). It is measured in degrees. The value of this parameter determines the quantity of mesh cells (triangles) used to represent a circular surface (360/NormalTolerance). Default value is 15. It means, for an example, that surface will be tessellated with 24 mesh cells (triangles) in circular direction.
Definition at line 66 of file wrTriangulationParams.h.
OdUInt32 wrTriangulationParams::PointsPerEdge |
Points quantity per edge.
Definition at line 88 of file wrTriangulationParams.h.
double wrTriangulationParams::surfaceTolerance |
Distance tolerance for coincident faces. If zero or negative, the tolerance will be calculated as a percent of extents diagonal: surfaceTolerance = diagonal * fabs(surfaceTolerance), or diagonal * 0.025 if zero.
Definition at line 73 of file wrTriangulationParams.h.