NX Open C++ Reference Guide
|
This class contains the factory methods for creating facet selection intent rules
To obtain an instance of this class, refer to NXOpen::Part
Created in NX12.0.0.
More...
Public Member Functions | |
NXOpen::BodyFacetsRule * | CreateRuleBodyFacets (const std::vector< NXOpen::NXObject * > &bodies) |
Create body facets selection rule: NXOpen::BodyFacetsRule . More... | |
NXOpen::ColorRegionRule * | CreateRuleColorRegionFacets (NXOpen::IFacet *seedFacet) |
Creates color region facets selection intent rule: NXOpen::ColorRegionRule . More... | |
NXOpen::FaceFacetsRule * | CreateRuleFaceFacets (const std::vector< NXOpen::NXObject * > &faces) |
Creates face facets selection intent rule: NXOpen::FaceFacetsRule . More... | |
NXOpen::FillBoundaryRule * | CreateRuleFillBoundary (const std::vector< NXOpen::IFacet * > &boundaryFacets, NXOpen::IFacet *seedFacet, bool includeBoudaryFacets) |
Creates fill boundary rule: NXOpen::FillBoundaryRule . More... | |
NXOpen::FineBrushFacetsRule * | CreateRuleFineBrushFacets (const NXOpen::Point3d &brushToolStartPoint, const NXOpen::Vector3d &brushToolDirection, double brushToolRadius, bool allowHiddenFacetsSel, NXOpen::IFacet *seedFacet) |
Creates fine brush facets selection intent rule: NXOpen::BrushFacetsRule . More... | |
NXOpen::FloodFillFacetsRule * | CreateRuleFloodFillFacets (NXOpen::IFacet *seedFacet, bool isDeselectionRule) |
Creates flood filled facet region selection intent rule: NXOpen::FloodFillFacetsRule . More... | |
NXOpen::RoughBrushFacetsRule * | CreateRuleRoughBrushFacets (const NXOpen::Point3d &brushToolStartPoint, const NXOpen::Vector3d &brushToolDirection, double brushToolRadius, bool allowHiddenFacetsSel, NXOpen::IFacet *seedFacet) |
Creates rough brush facets selection intent rule: NXOpen::BrushFacetsRule . More... | |
NXOpen::SingleFacetRule * | CreateRuleSingleFacet (const std::vector< NXOpen::IFacet * > &facets) |
Creates single facet selection intent rule: NXOpen::SingleFacetRule . More... | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
This class contains the factory methods for creating facet selection intent rules
To obtain an instance of this class, refer to NXOpen::Part
Created in NX12.0.0.
NXOpen::BodyFacetsRule* NXOpen::FacetSelectionRuleFactory::CreateRuleBodyFacets | ( | const std::vector< NXOpen::NXObject * > & | bodies | ) |
Create body facets selection rule: NXOpen::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. |
NXOpen::ColorRegionRule* NXOpen::FacetSelectionRuleFactory::CreateRuleColorRegionFacets | ( | NXOpen::IFacet * | seedFacet | ) |
Creates color region facets selection intent rule: NXOpen::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 facet |
NXOpen::FaceFacetsRule* NXOpen::FacetSelectionRuleFactory::CreateRuleFaceFacets | ( | const std::vector< NXOpen::NXObject * > & | faces | ) |
Creates face facets selection intent rule: NXOpen::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. |
NXOpen::FillBoundaryRule* NXOpen::FacetSelectionRuleFactory::CreateRuleFillBoundary | ( | const std::vector< NXOpen::IFacet * > & | boundaryFacets, |
NXOpen::IFacet * | seedFacet, | ||
bool | includeBoudaryFacets | ||
) |
Creates fill boundary rule: NXOpen::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 NXOpen::FloodFillFacetsRule smartly identifies the boundary facets from existing collection, NXOpen::FillBoundaryRule chains over existing collected facets until input boundary facets.
boundaryFacets | boundary facets upto which chaining is done. |
seedFacet | the seed facet |
includeBoudaryFacets | if true, input boundary facets are added to resultant chained collection of facets |
NXOpen::FineBrushFacetsRule* NXOpen::FacetSelectionRuleFactory::CreateRuleFineBrushFacets | ( | const NXOpen::Point3d & | brushToolStartPoint, |
const NXOpen::Vector3d & | brushToolDirection, | ||
double | brushToolRadius, | ||
bool | allowHiddenFacetsSel, | ||
NXOpen::IFacet * | seedFacet | ||
) |
Creates fine brush facets selection intent rule: NXOpen::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 tool |
brushToolDirection | the vector defining direction of brush tool |
brushToolRadius | the radius of brush tool |
allowHiddenFacetsSel | 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 collected |
seedFacet | the seed facet |
NXOpen::FloodFillFacetsRule* NXOpen::FacetSelectionRuleFactory::CreateRuleFloodFillFacets | ( | NXOpen::IFacet * | seedFacet, |
bool | isDeselectionRule | ||
) |
Creates flood filled facet region selection intent rule: NXOpen::FloodFillFacetsRule .
seedFacet | seed facet for flood filled facet collection |
isDeselectionRule | flag to specify whether it is deselection rule or not. |
NXOpen::RoughBrushFacetsRule* NXOpen::FacetSelectionRuleFactory::CreateRuleRoughBrushFacets | ( | const NXOpen::Point3d & | brushToolStartPoint, |
const NXOpen::Vector3d & | brushToolDirection, | ||
double | brushToolRadius, | ||
bool | allowHiddenFacetsSel, | ||
NXOpen::IFacet * | seedFacet | ||
) |
Creates rough brush facets selection intent rule: NXOpen::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 tool |
brushToolDirection | the vector defining direction of brush tool |
brushToolRadius | the radius of brush tool |
allowHiddenFacetsSel | 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 collected |
seedFacet | the seed facet |
NXOpen::SingleFacetRule* NXOpen::FacetSelectionRuleFactory::CreateRuleSingleFacet | ( | const std::vector< NXOpen::IFacet * > & | facets | ) |
Creates single facet selection intent rule: NXOpen::SingleFacetRule .
This rule adds given facets to collector without any chaining.
facets | facets to add through the rule. |
tag_t NXOpen::FacetSelectionRuleFactory::Tag | ( | ) | const |
Returns the tag of this object.