Modifier and Type | Method and Description |
---|---|
BodyFacetsRule |
createRuleBodyFacets(NXObject[] bodies)
Create body facets selection rule:
BodyFacetsRule
This rule chains to collect all facets of input facet bodies. |
ColorRegionRule |
createRuleColorRegionFacets(IFacet seedFacet)
Creates color region facets selection intent rule:
ColorRegionRule
This rule chains to collect all neighboring facets of seed (and the neighbor-neighbors) that are of same color as that of seed facet. |
FaceFacetsRule |
createRuleFaceFacets(NXObject[] faces)
Creates face facets selection intent rule:
FaceFacetsRule
This rule chains to collect all facets of input faces or faceted bodies. |
FillBoundaryRule |
createRuleFillBoundary(IFacet[] boundaryFacets,
IFacet seedFacet,
boolean includeBoudaryFacets)
Creates fill boundary rule:
FillBoundaryRule
This rule chains to add all neighboring facets of seed (and the neighbor-neighbors) until the region reaches a closed ring of specified boundary facets. |
FineBrushFacetsRule |
createRuleFineBrushFacets(Point3d brushToolStartPoint,
Vector3d brushToolDirection,
double brushToolRadius,
boolean allowHiddenFacetsSel,
IFacet seedFacet)
Creates fine brush facets selection intent rule:
BrushFacetsRule . |
FloodFillFacetsRule |
createRuleFloodFillFacets(IFacet seedFacet,
boolean isDeselectionRule)
Creates flood filled facet region selection intent rule:
FloodFillFacetsRule . |
RoughBrushFacetsRule |
createRuleRoughBrushFacets(Point3d brushToolStartPoint,
Vector3d brushToolDirection,
double brushToolRadius,
boolean allowHiddenFacetsSel,
IFacet seedFacet)
Creates rough brush facets selection intent rule:
BrushFacetsRule . |
SingleFacetRule |
createRuleSingleFacet(IFacet[] facets)
Creates single facet selection intent rule:
SingleFacetRule
This rule adds given facets to collector without any chaining. |
SingleFacetRule createRuleSingleFacet(IFacet[] facets) throws NXException, RemoteException
SingleFacetRule
This rule adds given facets to collector without any chaining.
facets
- facets to add through the rule.NXException
RemoteException
FaceFacetsRule createRuleFaceFacets(NXObject[] faces) throws NXException, RemoteException
FaceFacetsRule
This rule chains to collect all facets of input faces or faceted bodies. Note that NX faceted body has single face.
An Exception is raised if input object is not a face or a faceted body.
faces
- a face or NX faceted body whose facets are to be collected.NXException
RemoteException
FloodFillFacetsRule createRuleFloodFillFacets(IFacet seedFacet, boolean isDeselectionRule) throws NXException, RemoteException
FloodFillFacetsRule
.
seedFacet
- seed facet for flood filled facet collectionisDeselectionRule
- flag to specify whether it is deselection rule or not.NXException
RemoteException
RoughBrushFacetsRule createRuleRoughBrushFacets(Point3d brushToolStartPoint, Vector3d brushToolDirection, double brushToolRadius, boolean allowHiddenFacetsSel, IFacet seedFacet) throws NXException, RemoteException
BrushFacetsRule
.
This rule chains to collect all neighboring facets of seed (and the neighbor-neighbors) that are inside or crossing brush tool.
brushToolStartPoint
- the start point of brush toolbrushToolDirection
- the vector defining direction of brush toolbrushToolRadius
- the radius of brush toolallowHiddenFacetsSel
- the flag to allow selection of invisible facets in view direction specified by brush tool.
If this flag is false, facets hidden by parts of the same facet body in current view will not be collectedseedFacet
- the seed facetNXException
RemoteException
FineBrushFacetsRule createRuleFineBrushFacets(Point3d brushToolStartPoint, Vector3d brushToolDirection, double brushToolRadius, boolean allowHiddenFacetsSel, IFacet seedFacet) throws NXException, RemoteException
BrushFacetsRule
.
This rule chains to collect all neighboring facets of seed (and the neighbor-neighbors) that are stictly inside brush tool.
brushToolStartPoint
- the start point of brush toolbrushToolDirection
- the vector defining direction of brush toolbrushToolRadius
- the radius of brush toolallowHiddenFacetsSel
- the flag to allow selection of invisible facets in view direction specified by brush tool.
If this flag is false, facets hidden by parts of the same facet body in current view will not be collectedseedFacet
- the seed facetNXException
RemoteException
ColorRegionRule createRuleColorRegionFacets(IFacet seedFacet) throws NXException, RemoteException
ColorRegionRule
This rule chains to collect all neighboring facets of seed (and the neighbor-neighbors) that are of same color as that of seed facet.
The chaining grows upto an unicolor region of connected facets. Also the chainging does not cross the boundary of owning face for convergent facets and NX facet body for NX facets.
seedFacet
- the seed facetNXException
RemoteException
FillBoundaryRule createRuleFillBoundary(IFacet[] boundaryFacets, IFacet seedFacet, boolean includeBoudaryFacets) throws NXException, RemoteException
FillBoundaryRule
This rule chains to add all neighboring facets of seed (and the neighbor-neighbors) until the region reaches a closed ring of specified boundary facets.
While FloodFillFacetsRule
smartly identifies the boundary facets from existing collection,
FillBoundaryRule
chains over existing collected facets until input boundary facets.
boundaryFacets
- boundary facets upto which chaining is done.seedFacet
- the seed facetincludeBoudaryFacets
- if true, input boundary facets are added to resultant chained collection of facetsNXException
RemoteException
BodyFacetsRule createRuleBodyFacets(NXObject[] bodies) throws NXException, RemoteException
BodyFacetsRule
This rule chains to collect all facets of input facet bodies.
An Exception is raised if input object is not facet body.
bodies
- a faceted body whose facets are to be collected.NXException
RemoteException
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.