CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
SpaParameters.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 _SPAPARAMETERS_H_
25#define _SPAPARAMETERS_H_
26
27#include "TD_PackPush.h"
28
29#include "OdHeap.h"
30
36{
37public:
38
40 {
45
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
64 double normal_tol;
71 int check_level;// check level used in api_check_entity
72 double mass_props_req_rel_accy;// required relative accuracy for mass properties calculations
73
76 , surface_tol(-1) // use bounding box diagonal
77 , normal_tol(15.0)
78 , max_edge_length(0.) // ignored
79 , grid_aspect_ratio(0.) // ignored
83 , max_grid_lines(512)
86 , bUseFacetRES( true ) //FELIX_CHANGE DESTKOP-43063: Enable FACETRES by default
87 , check_level(10)
88 {
89 }
90
94 bool operator ==(const SPAParameters& other) const
95 {
96 return other.adjust_mode == adjust_mode &&
97 other.surface_tol == surface_tol &&
98 other.normal_tol == normal_tol &&
101 other.grid_mode == grid_mode &&
102 other.triang_mode == triang_mode &&
106 other.check_level == check_level;
107 // bUseFacetRES skipped
108 }
109};
110
111#include "TD_PackPop.h"
112
113#endif // _SPAPARAMETERS_H_
true
Definition: DimVarDefs.h:2046
double mass_props_req_rel_accy
Definition: SpaParameters.h:72
enum SPAParameters::SPA_GRID grid_mode
double max_edge_length
Definition: SpaParameters.h:65
bool operator==(const SPAParameters &other) const
Definition: SpaParameters.h:94
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