CFx SDK Documentation
2024 SP0
Loading...
Searching...
No Matches
SDK
CFx
dd_inc
SpaModeler
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
35
class
SPAParameters
36
{
37
public
:
38
39
enum
SPA_ADJUST
40
{
41
SPA_ADJUST_NONE
,
42
SPA_ADJUST_NON_GRID
,
43
SPA_ADJUST_ALL
44
}
adjust_mode
;
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
52
}
grid_mode
;
53
54
enum
SPA_TRIANG_MODE
{
55
SPA_TRIANG_NONE
,
56
SPA_TRIANG_ALL
,
57
SPA_TRIANG_FRINGE_1
,
58
SPA_TRIANG_FRINGE_2
,
59
SPA_TRIANG_FRINGE_3
,
60
SPA_TRIANG_FRINGE_4
61
}
triang_mode
;
62
63
double
surface_tol
;
64
double
normal_tol
;
65
double
max_edge_length
;
66
double
grid_aspect_ratio
;
67
int
max_grid_lines
;
68
int
min_u_grid_lines
;
69
int
min_v_grid_lines
;
70
bool
bUseFacetRES
;
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
74
SPAParameters
()
75
:
adjust_mode
(
SPA_ADJUST_NONE
)
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
80
,
grid_mode
(
SPA_GRID_INTERIOR
)
81
,
triang_mode
(
SPA_TRIANG_ALL
)
82
,
mass_props_req_rel_accy
(0.01)
83
,
max_grid_lines
(512)
84
,
min_u_grid_lines
(0)
85
,
min_v_grid_lines
(0)
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
&&
99
other.
max_edge_length
==
max_edge_length
&&
100
other.
grid_aspect_ratio
==
grid_aspect_ratio
&&
101
other.
grid_mode
==
grid_mode
&&
102
other.
triang_mode
==
triang_mode
&&
103
other.
max_grid_lines
==
max_grid_lines
&&
104
other.
min_u_grid_lines
==
min_u_grid_lines
&&
105
other.
min_v_grid_lines
==
min_v_grid_lines
&&
106
other.
check_level
==
check_level
;
107
// bUseFacetRES skipped
108
}
109
};
110
111
#include "
TD_PackPop.h
"
112
113
#endif
// _SPAPARAMETERS_H_
true
true
Definition:
DimVarDefs.h:2046
OdHeap.h
TD_PackPop.h
TD_PackPush.h
SPAParameters
Definition:
SpaParameters.h:36
SPAParameters::mass_props_req_rel_accy
double mass_props_req_rel_accy
Definition:
SpaParameters.h:72
SPAParameters::grid_mode
enum SPAParameters::SPA_GRID grid_mode
SPAParameters::min_u_grid_lines
int min_u_grid_lines
Definition:
SpaParameters.h:68
SPAParameters::check_level
int check_level
Definition:
SpaParameters.h:71
SPAParameters::max_edge_length
double max_edge_length
Definition:
SpaParameters.h:65
SPAParameters::SPA_GRID
SPA_GRID
Definition:
SpaParameters.h:47
SPAParameters::SPA_GRID_INTERIOR
@ SPA_GRID_INTERIOR
Definition:
SpaParameters.h:49
SPAParameters::SPA_GRID_ONE_DIR
@ SPA_GRID_ONE_DIR
Definition:
SpaParameters.h:51
SPAParameters::SPA_GRID_NONE
@ SPA_GRID_NONE
Definition:
SpaParameters.h:48
SPAParameters::SPA_GRID_TO_EDGES
@ SPA_GRID_TO_EDGES
Definition:
SpaParameters.h:50
SPAParameters::max_grid_lines
int max_grid_lines
Definition:
SpaParameters.h:67
SPAParameters::operator==
bool operator==(const SPAParameters &other) const
Definition:
SpaParameters.h:94
SPAParameters::SPAParameters
SPAParameters()
Definition:
SpaParameters.h:74
SPAParameters::min_v_grid_lines
int min_v_grid_lines
Definition:
SpaParameters.h:69
SPAParameters::bUseFacetRES
bool bUseFacetRES
Definition:
SpaParameters.h:70
SPAParameters::grid_aspect_ratio
double grid_aspect_ratio
Definition:
SpaParameters.h:66
SPAParameters::SPA_ADJUST
SPA_ADJUST
Definition:
SpaParameters.h:40
SPAParameters::SPA_ADJUST_ALL
@ SPA_ADJUST_ALL
Definition:
SpaParameters.h:43
SPAParameters::SPA_ADJUST_NONE
@ SPA_ADJUST_NONE
Definition:
SpaParameters.h:41
SPAParameters::SPA_ADJUST_NON_GRID
@ SPA_ADJUST_NON_GRID
Definition:
SpaParameters.h:42
SPAParameters::adjust_mode
enum SPAParameters::SPA_ADJUST adjust_mode
SPAParameters::surface_tol
double surface_tol
Definition:
SpaParameters.h:63
SPAParameters::normal_tol
double normal_tol
Definition:
SpaParameters.h:64
SPAParameters::triang_mode
enum SPAParameters::SPA_TRIANG_MODE triang_mode
SPAParameters::SPA_TRIANG_MODE
SPA_TRIANG_MODE
Definition:
SpaParameters.h:54
SPAParameters::SPA_TRIANG_ALL
@ SPA_TRIANG_ALL
Definition:
SpaParameters.h:56
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
SPAParameters::SPA_TRIANG_NONE
@ SPA_TRIANG_NONE
Definition:
SpaParameters.h:55
SPAParameters::SPA_TRIANG_FRINGE_1
@ SPA_TRIANG_FRINGE_1
Definition:
SpaParameters.h:57
SPAParameters::SPA_TRIANG_FRINGE_2
@ SPA_TRIANG_FRINGE_2
Definition:
SpaParameters.h:58
Generated on Wed Apr 5 2023 17:29:24