NX Open C++ Reference Guide
Public Member Functions | List of all members
NXOpen::FacetSelectionRuleFactory Class Reference

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::BodyFacetsRuleCreateRuleBodyFacets (const std::vector< NXOpen::NXObject * > &bodies)
 Create body facets selection rule: NXOpen::BodyFacetsRule . More...
 
NXOpen::ColorRegionRuleCreateRuleColorRegionFacets (NXOpen::IFacet *seedFacet)
 Creates color region facets selection intent rule: NXOpen::ColorRegionRule . More...
 
NXOpen::FaceFacetsRuleCreateRuleFaceFacets (const std::vector< NXOpen::NXObject * > &faces)
 Creates face facets selection intent rule: NXOpen::FaceFacetsRule . More...
 
NXOpen::FillBoundaryRuleCreateRuleFillBoundary (const std::vector< NXOpen::IFacet * > &boundaryFacets, NXOpen::IFacet *seedFacet, bool includeBoudaryFacets)
 Creates fill boundary rule: NXOpen::FillBoundaryRule . More...
 
NXOpen::FineBrushFacetsRuleCreateRuleFineBrushFacets (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::FloodFillFacetsRuleCreateRuleFloodFillFacets (NXOpen::IFacet *seedFacet, bool isDeselectionRule)
 Creates flood filled facet region selection intent rule: NXOpen::FloodFillFacetsRule . More...
 
NXOpen::RoughBrushFacetsRuleCreateRuleRoughBrushFacets (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::SingleFacetRuleCreateRuleSingleFacet (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...
 

Detailed Description

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.


Member Function Documentation

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.

Returns

Created in NX12.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
bodiesa 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.

Returns

Created in NX12.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
seedFacetthe 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.

Returns

Created in NX12.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
facesa 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.

Returns

Created in NX12.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
boundaryFacetsboundary facets upto which chaining is done.
seedFacetthe seed facet
includeBoudaryFacetsif 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.

Returns

Created in NX12.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
brushToolStartPointthe start point of brush tool
brushToolDirectionthe vector defining direction of brush tool
brushToolRadiusthe radius of brush tool
allowHiddenFacetsSelthe 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
seedFacetthe seed facet
NXOpen::FloodFillFacetsRule* NXOpen::FacetSelectionRuleFactory::CreateRuleFloodFillFacets ( NXOpen::IFacet seedFacet,
bool  isDeselectionRule 
)

Creates flood filled facet region selection intent rule: NXOpen::FloodFillFacetsRule .

  1. If isDeselectionRule is passed false, This rule chains to add all neighboring facets of seed (and the neighbor-neighbors) until the region reaches a closed ring of already collected facets in collector. If already collected facets in collector do not form a closed ring, then all facets of owning face of the seed are added to collector.
  2. If isDeselectionRule is passed true, then on adding the rule to collector it removes all facets of region from where seed facet belongs.
Returns

Created in NX12.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
seedFacetseed facet for flood filled facet collection
isDeselectionRuleflag 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.

Returns

Created in NX12.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
brushToolStartPointthe start point of brush tool
brushToolDirectionthe vector defining direction of brush tool
brushToolRadiusthe radius of brush tool
allowHiddenFacetsSelthe 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
seedFacetthe 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.

Returns

Created in NX12.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
facetsfacets to add through the rule.
tag_t NXOpen::FacetSelectionRuleFactory::Tag ( ) const

Returns the tag of this object.


The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.