SubdivideFacetBodyBuilder Class¶
-
class
NXOpen.Facet.
SubdivideFacetBodyBuilder
¶ Bases:
NXOpen.Builder
This class provides functionality to subdivide the polygons to increase the density of the facet bodies.
Subdividing Polygons creates a smoother representation. To create a new instance of this class, use
NXOpen.Facet.FacetedBodyCollection.CreateSubdivideFacetBodyBuilder
Default values.
Property Value AngleThreshold 30 EdgeLength 1 InterpolationMethod Cubic IsEditCopy 0 IsOptimize 0 SubdivisionMethod SubdivideIntoFour New in version NX7.5.0.
Properties¶
Property | Description |
---|---|
AngleThreshold | Returns or sets the angular tolerance to detect sharp edges to be kept. |
EdgeLength | Returns or sets the value indicating length of the edge of the polygons to be subdivided. |
FacetBodies | Returns the facet bodies to be subdivided |
InterpolationMethod | Returns or sets the interpolation method |
IsEditCopy | Returns or sets the value indicating if a copy of the facet body to be subdivided without altering the original. |
IsOptimize | Returns or sets the value indicating whether to perform a decimation step after the subdivision. |
RegionList | Returns an optional list of regions on the facet bodies to be subdivided. |
SubdivisionMethod | Returns or sets the subdivision method |
Tag | Returns the Tag for this object. |
Methods¶
Method | Description |
---|---|
Commit | Commits any edits that have been applied to the builder. |
Destroy | Deletes the builder, and cleans up any objects created by the builder. |
GetCommittedObjects | For builders that create more than one object, this method returns the objects that are created by commit. |
GetObject | Returns the object currently being edited by this builder. |
ShowResults | Updates the model to reflect the result of an edit to the model for all builders that support showing results. |
Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Enumerations¶
SubdivideFacetBodyBuilderInterpolationMethodType Enumeration | Subdivision interpolation methods |
SubdivideFacetBodyBuilderSubdivisionMethodType Enumeration | Subdivision methods |
Property Detail¶
AngleThreshold¶
-
SubdivideFacetBodyBuilder.
AngleThreshold
¶ Returns or sets the angular tolerance to detect sharp edges to be kept.
Cubic interpolation can not interpolate over an edge of two triangles whose normals differ more than the specified value. Same applies to re-meshing.
-------------------------------------
Getter Method
Signature
AngleThreshold()
Returns: Return type: float New in version NX7.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
AngleThreshold(angleThreshold)
Parameters: angleThreshold (float) – New in version NX7.5.0.
License requirements: studio_free_form (“STUDIO FREE FORM”)
EdgeLength¶
-
SubdivideFacetBodyBuilder.
EdgeLength
¶ Returns or sets the value indicating length of the edge of the polygons to be subdivided.
-------------------------------------
Getter Method
Signature
EdgeLength()
Returns: Return type: float New in version NX7.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
EdgeLength(edgeLength)
Parameters: edgeLength (float) – New in version NX7.5.0.
License requirements: studio_free_form (“STUDIO FREE FORM”)
FacetBodies¶
-
SubdivideFacetBodyBuilder.
FacetBodies
¶ Returns the facet bodies to be subdivided
-------------------------------------
Getter Method
Signature
FacetBodies()
Returns: Return type: NXOpen.Facet.SelectFacetedBodyList
New in version NX7.5.0.
License requirements: None.
InterpolationMethod¶
-
SubdivideFacetBodyBuilder.
InterpolationMethod
¶ Returns or sets the interpolation method
-------------------------------------
Getter Method
Signature
InterpolationMethod()
Returns: Return type: NXOpen.Facet.SubdivideFacetBodyBuilderInterpolationMethodType
New in version NX7.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
InterpolationMethod(interpolationMethod)
Parameters: interpolationMethod ( NXOpen.Facet.SubdivideFacetBodyBuilderInterpolationMethodType
) –New in version NX7.5.0.
License requirements: studio_free_form (“STUDIO FREE FORM”)
IsEditCopy¶
-
SubdivideFacetBodyBuilder.
IsEditCopy
¶ Returns or sets the value indicating if a copy of the facet body to be subdivided without altering the original.
-------------------------------------
Getter Method
Signature
IsEditCopy()
Returns: Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
IsEditCopy(isEditCopy)
Parameters: isEditCopy (bool) – New in version NX7.5.0.
License requirements: studio_free_form (“STUDIO FREE FORM”)
IsOptimize¶
-
SubdivideFacetBodyBuilder.
IsOptimize
¶ Returns or sets the value indicating whether to perform a decimation step after the subdivision.
-------------------------------------
Getter Method
Signature
IsOptimize()
Returns: Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
IsOptimize(isOptimize)
Parameters: isOptimize (bool) – New in version NX7.5.0.
License requirements: studio_free_form (“STUDIO FREE FORM”)
RegionList¶
-
SubdivideFacetBodyBuilder.
RegionList
¶ Returns an optional list of regions on the facet bodies to be subdivided.
-------------------------------------
Getter Method
Signature
RegionList()
Returns: Return type: NXOpen.GeometricUtilities.BoundaryDefinitionBuilderList
New in version NX7.5.0.
License requirements: None.
SubdivisionMethod¶
-
SubdivideFacetBodyBuilder.
SubdivisionMethod
¶ Returns or sets the subdivision method
-------------------------------------
Getter Method
Signature
SubdivisionMethod()
Returns: Return type: NXOpen.Facet.SubdivideFacetBodyBuilderSubdivisionMethodType
New in version NX7.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
SubdivisionMethod(subdivisionMethod)
Parameters: subdivisionMethod ( NXOpen.Facet.SubdivideFacetBodyBuilderSubdivisionMethodType
) –New in version NX7.5.0.
License requirements: studio_free_form (“STUDIO FREE FORM”)
Method Detail¶
Validate¶
-
SubdivideFacetBodyBuilder.
Validate
¶ Validate whether the inputs to the component are sufficient for commit to be called.
If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.
Signature
Validate()
Returns: Was self validation successful Return type: bool New in version NX3.0.1.
License requirements: None.