#include <opennurbs_subd.h>
◆ Style
ON_SubDExpandEdgesParameters::Style specifies options for how faces are inserted along input edges.
Enumerator |
---|
Unset | Indicates the variable has not be initialized.
|
Single | One quad replaces each input manifold edge. Corner cases where three or more edges meet receive special handling.
|
Double | Two quads are added for each input manifold edge. Corner cases where three or more edges meet receive special handling.
|
HalfLeft | This option applies only when the the input is an array of ON_SubDEdgePtrs that form a single oriented edge chain of manifold interior edges. A single quad is added to the left of the input edges. (The left side of of an oriented interior manifold edge is the face whose natural boundary orientation is the same as with the ON_SubDEdgePtr direction.)
|
HalfRight | This option applies only when the the input is an array of ON_SubDEdgePtrs that form a single oriented edge chain of manifold interior edges. A single quad is added to the right of the input edges. (The right side of of an oriented interior manifold edge is the face whose natural boundary orientation is opposite the ON_SubDEdgePtr direction.)
|
◆ ON_SubDExpandEdgesParameters() [1/2]
ON_SubDExpandEdgesParameters::ON_SubDExpandEdgesParameters |
( |
| ) |
|
|
default |
◆ ~ON_SubDExpandEdgesParameters()
ON_SubDExpandEdgesParameters::~ON_SubDExpandEdgesParameters |
( |
| ) |
|
|
default |
◆ ON_SubDExpandEdgesParameters() [2/2]
◆ CleanupOffset()
static double ON_SubDExpandEdgesParameters::CleanupOffset |
( |
double |
x | ) |
|
|
static |
◆ ClearVariableOffset()
void ON_SubDExpandEdgesParameters::ClearVariableOffset |
( |
| ) |
|
◆ ConstantOffset()
double ON_SubDExpandEdgesParameters::ConstantOffset |
( |
| ) |
const |
◆ FaceColor()
const ON_Color ON_SubDExpandEdgesParameters::FaceColor |
( |
| ) |
const |
- Returns
- Per face color for new faces.
◆ FaceStatus()
- Returns
- Status for new faces.
◆ FaceStyle()
◆ Hash()
const ON_SHA1_Hash ON_SubDExpandEdgesParameters::Hash |
( |
| ) |
const |
This SHA1 hash can be used to determine if sets of parameters are the same.
- Returns
- A SHA1 hash of all parameter values.
◆ IsHalfFaceStyle()
bool ON_SubDExpandEdgesParameters::IsHalfFaceStyle |
( |
| ) |
const |
- Returns
- True if the FaceStyle() is HalfLeft of HalfRight.
◆ IsValidConstantOffset()
static bool ON_SubDExpandEdgesParameters::IsValidConstantOffset |
( |
double |
constant_offset_candidate | ) |
|
|
static |
◆ IsValidForHalfOffset()
Determine if the set of ON_SubDEdgePtrs can be sorted into a single edge chain that supports half side offsets.
- Parameters
-
- Returns
- True if variable offsets can be applied to edge_chain.
◆ IsValidForVariableOffset()
Determine if the set of ON_SubDEdgePtrs can be sorted into a single open edge chain supports variable offsets.
- Parameters
-
- Returns
- True if variable offsets can be applied to edge_chain.
◆ IsValidVariableOffset()
static bool ON_SubDExpandEdgesParameters::IsValidVariableOffset |
( |
ON_Interval |
variable_offset_candidate | ) |
|
|
static |
◆ IsVariableOffset()
bool ON_SubDExpandEdgesParameters::IsVariableOffset |
( |
| ) |
const |
Returns: True if variable offsets are set.
◆ operator=()
◆ SetConstantOffset()
void ON_SubDExpandEdgesParameters::SetConstantOffset |
( |
double |
offset | ) |
|
Set the constant offset value. Values within OffsetTolerance of a predefined offset value are set to the predefined offset value.
- Parameters
-
- Returns
◆ SetFaceColor()
void ON_SubDExpandEdgesParameters::SetFaceColor |
( |
ON_Color |
face_color | ) |
|
Set the perf face color for new faces.
- Parameters
-
face_color | Color for new face. Pass ON_Color::Unset for no per face color. |
◆ SetFaceStatus()
Set the Mark(), MarkBits(), Selected(), and Highlighted() status for new faces.
- Parameters
-
face_status | Status for new faces. |
◆ SetFaceStyle()
Set the style for new faces.
- Parameters
-
- Returns
- Style for new faces.
◆ SetVariableOffset()
void ON_SubDExpandEdgesParameters::SetVariableOffset |
( |
ON_Interval |
variable_offsets | ) |
|
Description: This option applies only when the the input is an array of ON_SubDEdgePtrs that form a single oriented edge chain. You may use ON_SubDExpandEdgesParameters::IsValidForVariableOffset() to determine if an array of ON_SubDEdgePtrs meets the variable offset requirements. In all other cases, the constant Offset() is used. To apply variable offsets to several edge chains, expand them one at a time.
Parameters: variable_offsets - [in] The two values must be between 0 and 1 and differ by more than ON_SubDExpandEdgesParameters::OffsetTolerance.
◆ VariableOffset()
const ON_Interval ON_SubDExpandEdgesParameters::VariableOffset |
( |
| ) |
const |
This option applies only when the the input is an array of ON_SubDEdgePtrs that form a single oriented edge chain. You may use ON_SubDExpandEdgesParameters::IsValidForVariableOffset() to determine if an array of ON_SubDEdgePtrs meets the variable offset requirements. In all other cases, the constant Offset() is used. To apply variable offsets to several edge chains, expand them one at a time.
◆ Default
◆ LargeOffset
const double ON_SubDExpandEdgesParameters::LargeOffset |
|
static |
◆ MaximumOffset
const double ON_SubDExpandEdgesParameters::MaximumOffset |
|
static |
Maximum permitted offset value (0.95)
◆ MediumOffset
const double ON_SubDExpandEdgesParameters::MediumOffset |
|
static |
Medium offset value (0.25)
◆ MinimumOffset
const double ON_SubDExpandEdgesParameters::MinimumOffset |
|
static |
Minimum permitted offset value (0.05)
◆ OffsetTolerance
const double ON_SubDExpandEdgesParameters::OffsetTolerance |
|
static |
◆ SmallOffset
const double ON_SubDExpandEdgesParameters::SmallOffset |
|
static |
Small offset value (0.125)