CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
wrTriangulationParams Class Reference

#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
 

Detailed Description

This container class holds ACIS triangulation (rendering) parameters. <group Other_Classes>

Remarks
Default triangulation parameters:

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.

Constructor & Destructor Documentation

◆ wrTriangulationParams()

wrTriangulationParams::wrTriangulationParams ( bool  bNewTess = false)
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.

Member Function Documentation

◆ operator==()

bool wrTriangulationParams::operator== ( const wrTriangulationParams  other) const
inline

Comparing operator for wrTriangulationParams class.

Parameters
other[in] A wrTriangulationParams object to be compared with.

Definition at line 167 of file wrTriangulationParams.h.

Member Data Documentation

◆ BetweenKnots

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.

◆ bFastMode

bool wrTriangulationParams::bFastMode

Fast mode is much more faster, but generates more errors.

Definition at line 98 of file wrTriangulationParams.h.

◆ bRecalculateSurfaceTolerance

bool wrTriangulationParams::bRecalculateSurfaceTolerance

Recalculate surface tolerance in worldDraw calling virtual 'deviation' method.

Definition at line 93 of file wrTriangulationParams.h.

◆ bUseTesselation

bool wrTriangulationParams::bUseTesselation

Use new tesselation algo for surfaces.

Definition at line 103 of file wrTriangulationParams.h.

◆ gridAspectRatio

double wrTriangulationParams::gridAspectRatio

Grid aspect ratio.

Definition at line 78 of file wrTriangulationParams.h.

◆ maxFacetEdgeLength

double wrTriangulationParams::maxFacetEdgeLength

Maximum facet edge length.

Definition at line 59 of file wrTriangulationParams.h.

◆ maxNumGridLines

OdUInt32 wrTriangulationParams::maxNumGridLines

Maximum number of grid lines.

Definition at line 54 of file wrTriangulationParams.h.

◆ normalTolerance

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.

◆ PointsPerEdge

OdUInt32 wrTriangulationParams::PointsPerEdge

Points quantity per edge.

Definition at line 88 of file wrTriangulationParams.h.

◆ surfaceTolerance

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.


The documentation for this class was generated from the following file: