CFx SDK Documentation  2020SP3
SpaParameters.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, 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 Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 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 _SPAPARAMETERS_H_
25 #define _SPAPARAMETERS_H_
26 
27 #include "TD_PackPush.h"
28 
29 #include "OdHeap.h"
30 
36 {
37 public:
38 
40  {
45 
46  enum SPA_GRID
47  {
48  SPA_GRID_NONE, // No grids at all.
49  SPA_GRID_INTERIOR, // Grids in interior.
50  SPA_GRID_TO_EDGES, // Allow grid to divide model edges.
51  SPA_GRID_ONE_DIR // Grid only in one direction, u or v
53 
62 
63  double surface_tol;
64  double normal_tol;
71 
72 
75  , surface_tol(-1) // use bounding box diagonal
76  , normal_tol(15.0)
77  , max_edge_length(0.) // ignored
78  , grid_aspect_ratio(0.) // ignored
81  , max_grid_lines(512)
82  , min_u_grid_lines(0)
83  , min_v_grid_lines(0)
84  , bUseFacetRES( true ) //FELIX_CHANGE DESTKOP-43063: Enable FACETRES by default
85  {
86  }
87 
91  bool operator ==(const SPAParameters other) const
92  {
93  return other.adjust_mode == adjust_mode &&
94  other.surface_tol == surface_tol &&
95  other.normal_tol == normal_tol &&
98  other.grid_mode == grid_mode &&
99  other.triang_mode == triang_mode &&
100  other.max_grid_lines == max_grid_lines &&
103  // bUseFacetRES skipped
104  }
105 };
106 
107 #include "TD_PackPop.h"
108 
109 #endif // _SPAPARAMETERS_H_
SPAParameters::min_u_grid_lines
int min_u_grid_lines
Definition: SpaParameters.h:68
SPAParameters::max_edge_length
double max_edge_length
Definition: SpaParameters.h:65
SPAParameters::SPA_GRID_TO_EDGES
@ SPA_GRID_TO_EDGES
Definition: SpaParameters.h:50
SPAParameters::normal_tol
double normal_tol
Definition: SpaParameters.h:64
SPAParameters::SPA_TRIANG_FRINGE_2
@ SPA_TRIANG_FRINGE_2
Definition: SpaParameters.h:58
SPAParameters::grid_aspect_ratio
double grid_aspect_ratio
Definition: SpaParameters.h:66
SPAParameters
Definition: SpaParameters.h:36
SPAParameters::surface_tol
double surface_tol
Definition: SpaParameters.h:63
SPAParameters::SPA_ADJUST_ALL
@ SPA_ADJUST_ALL
Definition: SpaParameters.h:43
SPAParameters::SPA_TRIANG_MODE
SPA_TRIANG_MODE
Definition: SpaParameters.h:54
SPAParameters::SPA_TRIANG_NONE
@ SPA_TRIANG_NONE
Definition: SpaParameters.h:55
SPAParameters::bUseFacetRES
bool bUseFacetRES
Definition: SpaParameters.h:70
TD_PackPop.h
SPAParameters::SPAParameters
SPAParameters()
Definition: SpaParameters.h:73
SPAParameters::grid_mode
enum SPAParameters::SPA_GRID grid_mode
SPAParameters::SPA_TRIANG_FRINGE_4
@ SPA_TRIANG_FRINGE_4
Definition: SpaParameters.h:60
SPAParameters::SPA_TRIANG_FRINGE_3
@ SPA_TRIANG_FRINGE_3
Definition: SpaParameters.h:59
OdHeap.h
SPAParameters::SPA_GRID
SPA_GRID
Definition: SpaParameters.h:47
SPAParameters::SPA_TRIANG_FRINGE_1
@ SPA_TRIANG_FRINGE_1
Definition: SpaParameters.h:57
SPAParameters::min_v_grid_lines
int min_v_grid_lines
Definition: SpaParameters.h:69
true
true
Definition: DimVarDefs.h:2046
SPAParameters::SPA_GRID_INTERIOR
@ SPA_GRID_INTERIOR
Definition: SpaParameters.h:49
SPAParameters::adjust_mode
enum SPAParameters::SPA_ADJUST adjust_mode
SPAParameters::SPA_ADJUST_NON_GRID
@ SPA_ADJUST_NON_GRID
Definition: SpaParameters.h:42
TD_PackPush.h
SPAParameters::SPA_ADJUST
SPA_ADJUST
Definition: SpaParameters.h:40
SPAParameters::SPA_ADJUST_NONE
@ SPA_ADJUST_NONE
Definition: SpaParameters.h:41
SPAParameters::operator==
bool operator==(const SPAParameters other) const
Definition: SpaParameters.h:91
SPAParameters::triang_mode
enum SPAParameters::SPA_TRIANG_MODE triang_mode
SPAParameters::SPA_TRIANG_ALL
@ SPA_TRIANG_ALL
Definition: SpaParameters.h:56
SPAParameters::max_grid_lines
int max_grid_lines
Definition: SpaParameters.h:67
SPAParameters::SPA_GRID_ONE_DIR
@ SPA_GRID_ONE_DIR
Definition: SpaParameters.h:51
SPAParameters::SPA_GRID_NONE
@ SPA_GRID_NONE
Definition: SpaParameters.h:48