NX Open C++ Reference Guide
|
Represents a Facet::DecimateFacetBodyBuilder . More...
Public Types | |
enum | DecimateMethodType { DecimateMethodTypeChordalDeviation, DecimateMethodTypeSmallestFacet, DecimateMethodTypePercentage } |
Decimate Method. More... | |
Public Member Functions | |
double | AngleThreshold () |
Returns the value indicating maximum angle, where any facets with a larger relative angle are not reduced. | |
NXOpen::Facet::DecimateFacetBodyBuilder::DecimateMethodType | DecimateMethod () |
Returns the decimation method Created in NX7.5.0. | |
NXOpen::Facet::SelectFacetedBodyList * | FacetBodies () |
Returns the facet bodies to be decimated Created in NX7.5.0. | |
bool | IsEditCopy () |
Returns the value indicating if a copy of the facet body to be decimated without altering the original Created in NX7.5.0. | |
bool | IsLockBoundary () |
Returns the value indicating if the open edges of inner and outer loops in the facet bodies are to be kept intact Created in NX7.5.0. | |
double | MinimumArea () |
Returns the value indicating area of the smallest facet that is to be retained. | |
double | Percentage () |
Returns the value indicating percentage by which facet count is to be reduced. | |
NXOpen::GeometricUtilities::BoundaryDefinitionBuilderList * | RegionList () |
Returns an optional list of regions on the facet bodies to be decimated. | |
void | SetAngleThreshold (double angleThreshold) |
Sets the value indicating maximum angle, where any facets with a larger relative angle are not reduced. | |
void | SetDecimateMethod (NXOpen::Facet::DecimateFacetBodyBuilder::DecimateMethodType decimateMethod) |
Sets the decimation method Created in NX7.5.0. | |
void | SetEditCopy (bool isEditCopy) |
Sets the value indicating if a copy of the facet body to be decimated without altering the original Created in NX7.5.0. | |
void | SetLockBoundary (bool isLockBoundary) |
Sets the value indicating if the open edges of inner and outer loops in the facet bodies are to be kept intact Created in NX7.5.0. | |
void | SetMinimumArea (double minimumArea) |
Sets the value indicating area of the smallest facet that is to be retained. | |
void | SetPercentage (double percentage) |
Sets the value indicating percentage by which facet count is to be reduced. | |
void | SetTolerance (double tolerance) |
Sets the value indicating maximum chordal deviation from the original facet body. | |
double | Tolerance () |
Returns the value indicating maximum chordal deviation from the original facet body. | |
![]() | |
NXOpen::NXObject * | Commit () |
Commits any edits that have been applied to the builder. | |
void | Destroy () |
Deletes the builder, and cleans up any objects created by the builder. | |
std::vector< NXOpen::NXObject * > | GetCommittedObjects () |
For builders that create more than one object, this method returns the objects that are created by commit. | |
NXOpen::NXObject * | GetObject () |
Returns the object currently being edited by this builder. | |
void | ShowResults () |
Updates the model to reflect the result of an edit to the model for all builders that support showing results. | |
virtual bool | Validate () |
Validate whether the inputs to the component are sufficient for commit to be called. | |
![]() | |
tag_t | GetTag () const |
<b>Deprecated</b>:<br> Use Tag instead. | |
tag_t | Tag () const |
Returns the tag of this object. | |
Represents a Facet::DecimateFacetBodyBuilder .
Decimate Body Builder is a function to facilitate the reduction of data by reducing the density of facets while keeping the general shape in tact. Three different methods are provided to reduce the data. <br> To create a new instance of this class, use @link Facet::FacetedBodyCollection::CreateDecimateFacetBodyBuilder Facet::FacetedBodyCollection::CreateDecimateFacetBodyBuilder @endlink <br>
Default values.
Property | Value |
---|---|
AngleThreshold |
15 |
DecimateMethod |
ChordalDeviation |
IsEditCopy |
0 |
IsLockBoundary |
0 |
MinimumArea |
1 |
Percentage |
10 |
Tolerance |
0.25 |
Created in NX7.5.0.
Decimate Method.
double NXOpen::Facet::DecimateFacetBodyBuilder::AngleThreshold | ( | ) |
Returns the value indicating maximum angle, where any facets with a larger relative angle are not reduced.
This allows sharp edges to be retained.
Created in NX7.5.0.
License requirements : None
NXOpen::Facet::DecimateFacetBodyBuilder::DecimateMethodType NXOpen::Facet::DecimateFacetBodyBuilder::DecimateMethod | ( | ) |
Returns the decimation method
Created in NX7.5.0.
License requirements : None
NXOpen::Facet::SelectFacetedBodyList* NXOpen::Facet::DecimateFacetBodyBuilder::FacetBodies | ( | ) |
Returns the facet bodies to be decimated
Created in NX7.5.0.
License requirements : None
bool NXOpen::Facet::DecimateFacetBodyBuilder::IsEditCopy | ( | ) |
Returns the value indicating if a copy of the facet body to be decimated without altering the original
Created in NX7.5.0.
License requirements : None
bool NXOpen::Facet::DecimateFacetBodyBuilder::IsLockBoundary | ( | ) |
Returns the value indicating if the open edges of inner and outer loops in the facet bodies are to be kept intact
Created in NX7.5.0.
License requirements : None
double NXOpen::Facet::DecimateFacetBodyBuilder::MinimumArea | ( | ) |
Returns the value indicating area of the smallest facet that is to be retained.
All the facets smaller than the minimum area are removed. This value is used when Facet::DecimateFacetBodyBuilder::DecimateMethodType is Facet::DecimateFacetBodyBuilder::DecimateMethodTypeSmallestFacet .
Created in NX7.5.0.
License requirements : None
double NXOpen::Facet::DecimateFacetBodyBuilder::Percentage | ( | ) |
Returns the value indicating percentage by which facet count is to be reduced.
This value is used when Facet::DecimateFacetBodyBuilder::DecimateMethodType is Facet::DecimateFacetBodyBuilder::DecimateMethodTypePercentage .
Created in NX7.5.0.
License requirements : None
NXOpen::GeometricUtilities::BoundaryDefinitionBuilderList* NXOpen::Facet::DecimateFacetBodyBuilder::RegionList | ( | ) |
Returns an optional list of regions on the facet bodies to be decimated.
Created in NX7.5.0.
License requirements : None
void NXOpen::Facet::DecimateFacetBodyBuilder::SetAngleThreshold | ( | double | angleThreshold | ) |
Sets the value indicating maximum angle, where any facets with a larger relative angle are not reduced.
This allows sharp edges to be retained.
Created in NX7.5.0.
License requirements : studio_free_form ("STUDIO FREE FORM")
angleThreshold | anglethreshold |
void NXOpen::Facet::DecimateFacetBodyBuilder::SetDecimateMethod | ( | NXOpen::Facet::DecimateFacetBodyBuilder::DecimateMethodType | decimateMethod | ) |
Sets the decimation method
Created in NX7.5.0.
License requirements : studio_free_form ("STUDIO FREE FORM")
decimateMethod | decimatemethod |
void NXOpen::Facet::DecimateFacetBodyBuilder::SetEditCopy | ( | bool | isEditCopy | ) |
Sets the value indicating if a copy of the facet body to be decimated without altering the original
Created in NX7.5.0.
License requirements : studio_free_form ("STUDIO FREE FORM")
isEditCopy | iseditcopy |
void NXOpen::Facet::DecimateFacetBodyBuilder::SetLockBoundary | ( | bool | isLockBoundary | ) |
Sets the value indicating if the open edges of inner and outer loops in the facet bodies are to be kept intact
Created in NX7.5.0.
License requirements : studio_free_form ("STUDIO FREE FORM")
isLockBoundary | islockboundary |
void NXOpen::Facet::DecimateFacetBodyBuilder::SetMinimumArea | ( | double | minimumArea | ) |
Sets the value indicating area of the smallest facet that is to be retained.
All the facets smaller than the minimum area are removed. This value is used when Facet::DecimateFacetBodyBuilder::DecimateMethodType is Facet::DecimateFacetBodyBuilder::DecimateMethodTypeSmallestFacet .
Created in NX7.5.0.
License requirements : studio_free_form ("STUDIO FREE FORM")
minimumArea | minimumarea |
void NXOpen::Facet::DecimateFacetBodyBuilder::SetPercentage | ( | double | percentage | ) |
Sets the value indicating percentage by which facet count is to be reduced.
This value is used when Facet::DecimateFacetBodyBuilder::DecimateMethodType is Facet::DecimateFacetBodyBuilder::DecimateMethodTypePercentage .
Created in NX7.5.0.
License requirements : studio_free_form ("STUDIO FREE FORM")
percentage | percentage |
void NXOpen::Facet::DecimateFacetBodyBuilder::SetTolerance | ( | double | tolerance | ) |
Sets the value indicating maximum chordal deviation from the original facet body.
The value is used when Facet::DecimateFacetBodyBuilder::DecimateMethodType is Facet::DecimateFacetBodyBuilder::DecimateMethodTypeChordalDeviation .
Created in NX7.5.0.
License requirements : studio_free_form ("STUDIO FREE FORM")
tolerance | tolerance |
double NXOpen::Facet::DecimateFacetBodyBuilder::Tolerance | ( | ) |
Returns the value indicating maximum chordal deviation from the original facet body.
The value is used when Facet::DecimateFacetBodyBuilder::DecimateMethodType is Facet::DecimateFacetBodyBuilder::DecimateMethodTypeChordalDeviation .
Created in NX7.5.0.
License requirements : None