NXOpen .NET Reference  12.0.0
Public Member Functions | Properties | List of all members
NXOpen.FacetSelectionRuleFactory Class Reference

This class contains the factory methods for creating facet selection intent rules More...

Inheritance diagram for NXOpen.FacetSelectionRuleFactory:

Public Member Functions

unsafe NXOpen.SingleFacetRule CreateRuleSingleFacet (NXOpen.IFacet[] facets)
 Creates single facet selection intent rule: NXOpen.SingleFacetRule More...
 
unsafe NXOpen.FaceFacetsRule CreateRuleFaceFacets (NXOpen.NXObject[] faces)
 Creates face facets selection intent rule: NXOpen.FaceFacetsRule More...
 
unsafe NXOpen.FloodFillFacetsRule CreateRuleFloodFillFacets (NXOpen.IFacet seedFacet, bool isDeselectionRule)
 Creates flood filled facet region selection intent rule: NXOpen.FloodFillFacetsRule . More...
 
unsafe NXOpen.RoughBrushFacetsRule CreateRuleRoughBrushFacets (NXOpen.Point3d brushToolStartPoint, NXOpen.Vector3d brushToolDirection, double brushToolRadius, bool allowHiddenFacetsSel, NXOpen.IFacet seedFacet)
 Creates rough brush facets selection intent rule: NXOpen.BrushFacetsRule . More...
 
unsafe NXOpen.FineBrushFacetsRule CreateRuleFineBrushFacets (NXOpen.Point3d brushToolStartPoint, NXOpen.Vector3d brushToolDirection, double brushToolRadius, bool allowHiddenFacetsSel, NXOpen.IFacet seedFacet)
 Creates fine brush facets selection intent rule: NXOpen.BrushFacetsRule . More...
 
unsafe NXOpen.ColorRegionRule CreateRuleColorRegionFacets (NXOpen.IFacet seedFacet)
 Creates color region facets selection intent rule: NXOpen.ColorRegionRule More...
 
unsafe NXOpen.FillBoundaryRule CreateRuleFillBoundary (NXOpen.IFacet[] boundaryFacets, NXOpen.IFacet seedFacet, bool includeBoudaryFacets)
 Creates fill boundary rule: NXOpen.FillBoundaryRule More...
 
unsafe NXOpen.BodyFacetsRule CreateRuleBodyFacets (NXOpen.NXObject[] bodies)
 Create body facets selection rule: NXOpen.BodyFacetsRule More...
 

Properties

Tag Tag [get]
 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

unsafe NXOpen.BodyFacetsRule NXOpen.FacetSelectionRuleFactory.CreateRuleBodyFacets ( 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.

Created in NX12.0.0

License requirements: gateway ("UG GATEWAY")

Parameters
bodiesa faceted body whose facets are to be collected.
Returns
unsafe 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.

Created in NX12.0.0

License requirements: gateway ("UG GATEWAY")

Parameters
seedFacetthe seed facet
Returns
unsafe NXOpen.FaceFacetsRule NXOpen.FacetSelectionRuleFactory.CreateRuleFaceFacets ( 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.

Created in NX12.0.0

License requirements: gateway ("UG GATEWAY")

Parameters
facesa face or NX faceted body whose facets are to be collected.
Returns
unsafe NXOpen.FillBoundaryRule NXOpen.FacetSelectionRuleFactory.CreateRuleFillBoundary ( 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.

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
Returns
unsafe NXOpen.FineBrushFacetsRule NXOpen.FacetSelectionRuleFactory.CreateRuleFineBrushFacets ( NXOpen.Point3d  brushToolStartPoint,
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.

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
Returns
unsafe 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.

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.
Returns
unsafe NXOpen.RoughBrushFacetsRule NXOpen.FacetSelectionRuleFactory.CreateRuleRoughBrushFacets ( NXOpen.Point3d  brushToolStartPoint,
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.

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
Returns
unsafe NXOpen.SingleFacetRule NXOpen.FacetSelectionRuleFactory.CreateRuleSingleFacet ( NXOpen.IFacet[]  facets)

Creates single facet selection intent rule: NXOpen.SingleFacetRule

This rule adds given facets to collector without any chaining.

Created in NX12.0.0

License requirements: gateway ("UG GATEWAY")

Parameters
facetsfacets to add through the rule.
Returns

Property Documentation

Tag NXOpen.FacetSelectionRuleFactory.Tag
get

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.