CFx SDK Documentation  2022 SP0
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_
true
Definition: DimVarDefs.h:2046
enum SPAParameters::SPA_GRID grid_mode
bool operator==(const SPAParameters other) const
Definition: SpaParameters.h:91
double max_edge_length
Definition: SpaParameters.h:65
double grid_aspect_ratio
Definition: SpaParameters.h:66
enum SPAParameters::SPA_ADJUST adjust_mode
double surface_tol
Definition: SpaParameters.h:63
double normal_tol
Definition: SpaParameters.h:64
enum SPAParameters::SPA_TRIANG_MODE triang_mode