CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
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
50{
51public:
55
60
67
74
79
84
89
94
99
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;
145 bFastMode = false;
146 bUseTesselation = true;
147 }
148 else
149 {
150 maxNumGridLines = 10000;
152 normalTolerance = 15;
154 gridAspectRatio = 0;
155 BetweenKnots = 2;
156 PointsPerEdge = 0;
158 bFastMode = false;
159 bUseTesselation = false;
160 }
161 }
162
167 bool operator ==(const wrTriangulationParams other) const
168 {
169 return other.maxNumGridLines == maxNumGridLines
174 && other.PointsPerEdge == PointsPerEdge
175 && other.BetweenKnots == BetweenKnots
177 // bFastMode skipped
178 }
179};
180
181#include "TD_PackPop.h"
182
183#endif // _TRIANGULATIONPARAMS_H_
unsigned int OdUInt32
unsigned short OdUInt16
bool operator==(const wrTriangulationParams other) const
wrTriangulationParams(bool bNewTess=false)