CFx SDK Documentation
2024 SP0
Loading...
Searching...
No Matches
SDK
CFx
dd_inc
Wr
wrTriangulationParams.h
Go to the documentation of this file.
1
2
// Copyright (C) 2002-2022, Open Design Alliance (the "Alliance").
3
// All rights reserved.
4
//
5
// This software and its documentation and related materials are owned by
6
// the Alliance. The software may only be incorporated into application
7
// programs owned by members of the Alliance, subject to a signed
8
// Membership Agreement and Supplemental Software License Agreement with the
9
// Alliance. The structure and organization of this software are the valuable
10
// trade secrets of the Alliance and its suppliers. The software is also
11
// protected by copyright law and international treaty provisions. Application
12
// programs incorporating this software must include the following statement
13
// with their copyright notices:
14
//
15
// This application incorporates Open Design Alliance software pursuant to a license
16
// agreement with Open Design Alliance.
17
// Open Design Alliance Copyright (C) 2002-2022 by Open Design Alliance.
18
// All rights reserved.
19
//
20
// By use of this software, its documentation or related materials, you
21
// acknowledge and accept the above terms.
23
24
#ifndef _TRIANGULATIONPARAMS_H_
25
#define _TRIANGULATIONPARAMS_H_
26
27
#include "
TD_PackPush.h
"
28
29
#include "
OdHeap.h
"
30
49
class
wrTriangulationParams
50
{
51
public
:
54
OdUInt32
maxNumGridLines
;
55
59
double
maxFacetEdgeLength
;
60
66
double
normalTolerance
;
67
73
double
surfaceTolerance
;
74
78
double
gridAspectRatio
;
79
83
OdUInt16
BetweenKnots
;
84
88
OdUInt32
PointsPerEdge
;
89
93
bool
bRecalculateSurfaceTolerance
;
94
98
bool
bFastMode
;
99
103
bool
bUseTesselation
;
104
133
wrTriangulationParams
(
bool
bNewTess =
false
)
134
{
135
if
(bNewTess)
136
{
137
maxNumGridLines
= 10000;
138
maxFacetEdgeLength
= 100000;
139
normalTolerance
= 360;
140
surfaceTolerance
= 0;
// must be overridden!
141
gridAspectRatio
= 0;
142
BetweenKnots
= 0;
143
PointsPerEdge
= 0;
144
bRecalculateSurfaceTolerance
=
true
;
145
bFastMode
=
false
;
146
bUseTesselation
=
true
;
147
}
148
else
149
{
150
maxNumGridLines
= 10000;
151
maxFacetEdgeLength
= 0;
152
normalTolerance
= 15;
153
surfaceTolerance
= 0;
154
gridAspectRatio
= 0;
155
BetweenKnots
= 2;
156
PointsPerEdge
= 0;
157
bRecalculateSurfaceTolerance
=
false
;
158
bFastMode
=
false
;
159
bUseTesselation
=
false
;
160
}
161
}
162
167
bool
operator ==
(
const
wrTriangulationParams
other)
const
168
{
169
return
other.
maxNumGridLines
==
maxNumGridLines
170
&& other.
maxFacetEdgeLength
==
maxFacetEdgeLength
171
&& other.
normalTolerance
==
normalTolerance
172
&& other.
surfaceTolerance
==
surfaceTolerance
173
&& other.
gridAspectRatio
==
gridAspectRatio
174
&& other.
PointsPerEdge
==
PointsPerEdge
175
&& other.
BetweenKnots
==
BetweenKnots
176
&& other.
bRecalculateSurfaceTolerance
==
bRecalculateSurfaceTolerance
;
177
// bFastMode skipped
178
}
179
};
180
181
#include "
TD_PackPop.h
"
182
183
#endif
// _TRIANGULATIONPARAMS_H_
OdHeap.h
OdUInt32
unsigned int OdUInt32
Definition:
OdPlatformSettings.h:814
OdUInt16
unsigned short OdUInt16
Definition:
OdPlatformSettings.h:791
TD_PackPop.h
TD_PackPush.h
wrTriangulationParams
Definition:
wrTriangulationParams.h:50
wrTriangulationParams::surfaceTolerance
double surfaceTolerance
Definition:
wrTriangulationParams.h:73
wrTriangulationParams::operator==
bool operator==(const wrTriangulationParams other) const
Definition:
wrTriangulationParams.h:167
wrTriangulationParams::PointsPerEdge
OdUInt32 PointsPerEdge
Definition:
wrTriangulationParams.h:88
wrTriangulationParams::maxFacetEdgeLength
double maxFacetEdgeLength
Definition:
wrTriangulationParams.h:59
wrTriangulationParams::bUseTesselation
bool bUseTesselation
Definition:
wrTriangulationParams.h:103
wrTriangulationParams::gridAspectRatio
double gridAspectRatio
Definition:
wrTriangulationParams.h:78
wrTriangulationParams::normalTolerance
double normalTolerance
Definition:
wrTriangulationParams.h:66
wrTriangulationParams::bRecalculateSurfaceTolerance
bool bRecalculateSurfaceTolerance
Definition:
wrTriangulationParams.h:93
wrTriangulationParams::bFastMode
bool bFastMode
Definition:
wrTriangulationParams.h:98
wrTriangulationParams::BetweenKnots
OdUInt16 BetweenKnots
Definition:
wrTriangulationParams.h:83
wrTriangulationParams::wrTriangulationParams
wrTriangulationParams(bool bNewTess=false)
Definition:
wrTriangulationParams.h:133
wrTriangulationParams::maxNumGridLines
OdUInt32 maxNumGridLines
Definition:
wrTriangulationParams.h:54
Generated on Wed Apr 5 2023 17:29:25