FillHoleBuilder Class¶
-
class
NXOpen.Facet.
FillHoleBuilder
¶ Bases:
NXOpen.Builder
This class finds and fills holes to a prescribed boundary smoothness condition.
Inputs to this class can be convergent objects. To create a new instance of this class, use
NXOpen.Facet.FacetedBodyCollection.CreateFillHoleBuilder()
Default values.
Property Value IsEditCopy 0 MaxEdges 0 SmoothType Linear TargetType UserDefined New in version NX6.0.0.
Properties¶
Property | Description |
---|---|
BridgeEdges1 | Returns the first list of edges when bridging holes. |
BridgeEdges2 | Returns the second list of edges when bridging holes. |
InnerHole | Returns the Inner Hole in island filling. |
IsEditCopy | Returns or sets the flag indicating if the hole filling is on the copy of the input facet body. |
MaxEdges | Returns or sets the maximum number of edges that a targeted hole can have. |
OuterHole | Returns the Outer Hole in island filling. |
SmoothType | Returns or sets the boundary smoothness. |
Tag | Returns the Tag for this object. |
TargetBody | Returns the facet body we will be filling. |
TargetFacetBody | Returns the facet body we will be filling. |
TargetHole | Returns the hole curves using Fill Hole, User Defined. |
TargetType | Returns or sets the hole target type when filling holes. |
Type | Returns or sets the hole filling type. |
Methods¶
Method | Description |
---|---|
ClearHoleFills | Cleans up local meshes associated with each fill. |
ClearHoles | Removes all holes, deletes associated hole polylines. |
Commit | Commits any edits that have been applied to the builder. |
Destroy | Deletes the builder, and cleans up any objects created by the builder. |
FillHoles | Fills targeted holes. |
FindHoles | Locates holes in the mesh and creates polylines around them. |
GetAllHoles | Gets a list of all holes (represented by polylines). |
GetCommittedObjects | For builders that create more than one object, this method returns the objects that are created by commit. |
GetHoleByIndex | Gets a hole given an index into the list of holes. |
GetHoleFillsOnly | Builds a facet body that contains only the facets of the filled holes. |
GetNumberOfHoles | Gets the number of holes in the target facet body. |
GetObject | Returns the object currently being edited by this builder. |
GetTargetHolesByEdgeNumber | Gets a list of targeted holes (represented by polylines) based on number of edges. |
ShowResults | Updates the model to reflect the result of an edit to the model for all builders that support showing results. |
SwitchHoleFillType | Switches boundary edge mapping based on the filling type (holes, island, bridge) When filling holes or islands, each hole is defined by a polyline. |
Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Enumerations¶
FillHoleBuilderSmoothTypes Enumeration | Smoothness and boundary continuity options. |
FillHoleBuilderTargetTypes Enumeration | Options defining how to target holes for filling. |
FillHoleBuilderTypes Enumeration | Hole filling type options. |
Property Detail¶
BridgeEdges1¶
-
FillHoleBuilder.
BridgeEdges1
¶ Returns the first list of edges when bridging holes.
-------------------------------------
Getter Method
Signature
BridgeEdges1
Returns: Return type: NXOpen.SelectICurveList
New in version NX6.0.0.
License requirements: None.
BridgeEdges2¶
-
FillHoleBuilder.
BridgeEdges2
¶ Returns the second list of edges when bridging holes.
-------------------------------------
Getter Method
Signature
BridgeEdges2
Returns: Return type: NXOpen.SelectICurveList
New in version NX6.0.0.
License requirements: None.
InnerHole¶
-
FillHoleBuilder.
InnerHole
¶ Returns the Inner Hole in island filling.
-------------------------------------
Getter Method
Signature
InnerHole
Returns: Return type: NXOpen.SelectICurveList
New in version NX6.0.0.
License requirements: None.
IsEditCopy¶
-
FillHoleBuilder.
IsEditCopy
¶ Returns or sets the flag indicating if the hole filling is on the copy of the input facet body.
-------------------------------------
Getter Method
Signature
IsEditCopy
Returns: Return type: bool New in version NX12.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
IsEditCopy
Parameters: isEditCopy (bool) – New in version NX12.0.0.
License requirements: studio_free_form (“STUDIO FREE FORM”)
MaxEdges¶
-
FillHoleBuilder.
MaxEdges
¶ Returns or sets the maximum number of edges that a targeted hole can have.
-------------------------------------
Getter Method
Signature
MaxEdges
Returns: Return type: int New in version NX6.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
MaxEdges
Parameters: maxEdges (int) – New in version NX6.0.0.
License requirements: studio_free_form (“STUDIO FREE FORM”)
OuterHole¶
-
FillHoleBuilder.
OuterHole
¶ Returns the Outer Hole in island filling.
-------------------------------------
Getter Method
Signature
OuterHole
Returns: Return type: NXOpen.SelectICurveList
New in version NX6.0.0.
License requirements: None.
SmoothType¶
-
FillHoleBuilder.
SmoothType
¶ Returns or sets the boundary smoothness.
-------------------------------------
Getter Method
Signature
SmoothType
Returns: Return type: NXOpen.Facet.FillHoleBuilderSmoothTypes
New in version NX6.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
SmoothType
Parameters: smoothType ( NXOpen.Facet.FillHoleBuilderSmoothTypes
) –New in version NX6.0.0.
License requirements: studio_free_form (“STUDIO FREE FORM”)
TargetBody¶
-
FillHoleBuilder.
TargetBody
¶ Returns the facet body we will be filling.
-------------------------------------
Getter Method
Signature
TargetBody
Returns: Return type: NXOpen.SelectDisplayableObject
New in version NX11.0.0.
License requirements: None.
TargetFacetBody¶
-
FillHoleBuilder.
TargetFacetBody
¶ Returns the facet body we will be filling.
-------------------------------------
Getter Method
Signature
TargetFacetBody
Returns: Return type: NXOpen.Facet.SelectFacetedBody
New in version NX6.0.0.
Deprecated since version NX11.0.0: Use
NXOpen.Facet.FillHoleBuilder.TargetBody()
instead.License requirements: None.
TargetHole¶
-
FillHoleBuilder.
TargetHole
¶ Returns the hole curves using Fill Hole, User Defined.
-------------------------------------
Getter Method
Signature
TargetHole
Returns: Return type: NXOpen.SelectICurveList
New in version NX6.0.0.
License requirements: None.
TargetType¶
-
FillHoleBuilder.
TargetType
¶ Returns or sets the hole target type when filling holes.
-------------------------------------
Getter Method
Signature
TargetType
Returns: Return type: NXOpen.Facet.FillHoleBuilderTargetTypes
New in version NX6.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
TargetType
Parameters: targetType ( NXOpen.Facet.FillHoleBuilderTargetTypes
) –New in version NX6.0.0.
License requirements: studio_free_form (“STUDIO FREE FORM”)
Type¶
-
FillHoleBuilder.
Type
¶ Returns or sets the hole filling type.
-------------------------------------
Getter Method
Signature
Type
Returns: Return type: NXOpen.Facet.FillHoleBuilderTypes
New in version NX6.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Type
Parameters: type ( NXOpen.Facet.FillHoleBuilderTypes
) –New in version NX6.0.0.
License requirements: studio_free_form (“STUDIO FREE FORM”)
Method Detail¶
ClearHoleFills¶
-
FillHoleBuilder.
ClearHoleFills
¶ Cleans up local meshes associated with each fill.
Signature
ClearHoleFills()
New in version NX6.0.0.
License requirements: None.
ClearHoles¶
-
FillHoleBuilder.
ClearHoles
¶ Removes all holes, deletes associated hole polylines.
Signature
ClearHoles()
New in version NX6.0.0.
License requirements: None.
FillHoles¶
-
FillHoleBuilder.
FillHoles
¶ Fills targeted holes.
Signature
FillHoles(globalUpdate)
Parameters: globalUpdate (bool) – If true, update the entire input facet body. If false, GetHoleFillsOnly() may be used to get a facet body that contains only the new facets of the filled holes. Returns: updated input facet body Return type: NXOpen.DisplayableObject
New in version NX6.0.0.
License requirements: None.
FindHoles¶
-
FillHoleBuilder.
FindHoles
¶ Locates holes in the mesh and creates polylines around them.
Signature
FindHoles()
New in version NX6.0.0.
License requirements: None.
GetAllHoles¶
-
FillHoleBuilder.
GetAllHoles
¶ Gets a list of all holes (represented by polylines).
Signature
GetAllHoles()
Returns: Hole polylines. Return type: list of NXOpen.DisplayableObject
New in version NX6.0.0.
License requirements: None.
GetHoleByIndex¶
-
FillHoleBuilder.
GetHoleByIndex
¶ Gets a hole given an index into the list of holes.
Signature
GetHoleByIndex(index)
Parameters: index (int) – Index into the list of all holes Returns: Equals None if not found Return type: NXOpen.ICurve
New in version NX6.0.0.
License requirements: None.
GetHoleFillsOnly¶
-
FillHoleBuilder.
GetHoleFillsOnly
¶ Builds a facet body that contains only the facets of the filled holes.
Signature
GetHoleFillsOnly()
Returns: the fill facet body Return type: NXOpen.DisplayableObject
New in version NX6.0.0.
License requirements: None.
GetNumberOfHoles¶
-
FillHoleBuilder.
GetNumberOfHoles
¶ Gets the number of holes in the target facet body.
Signature
GetNumberOfHoles()
Returns: Return type: int New in version NX6.0.0.
License requirements: None.
GetTargetHolesByEdgeNumber¶
-
FillHoleBuilder.
GetTargetHolesByEdgeNumber
¶ Gets a list of targeted holes (represented by polylines) based on number of edges.
Signature
GetTargetHolesByEdgeNumber(numMaxEdges)
Parameters: numMaxEdges (int) – Targets polylines that have this many edges or less. Returns: Hole polylines. Return type: list of NXOpen.DisplayableObject
New in version NX6.0.0.
License requirements: None.
SwitchHoleFillType¶
-
FillHoleBuilder.
SwitchHoleFillType
¶ Switches boundary edge mapping based on the filling type (holes, island, bridge) When filling holes or islands, each hole is defined by a polyline.
When bridging holes, each individual open edge has its own polyline.
Signature
SwitchHoleFillType()
New in version NX6.0.0.
License requirements: None.
Validate¶
-
FillHoleBuilder.
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.