NX Open C++ Reference Guide
Public Types | Public Member Functions
NXOpen::GeometricAnalysis::SimpleInterference Class Reference

Represents the Simple Interference object. More...

Inheritance diagram for NXOpen::GeometricAnalysis::SimpleInterference:
NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

List of all members.

Public Types

enum  FaceInterferenceMethod { FaceInterferenceMethodFirstPairOnly, FaceInterferenceMethodAllPairs }
 Specifies to "find only first pair of interfering faces" or "all pairs of interfering faces" between the input boides. More...
enum  InterferenceMethod { InterferenceMethodInterferingFaces, InterferenceMethodInterferenceSolid }
 Specifies interference method, i.e., to highlight interfering faces or create interference solid. More...
enum  Result { ResultNoInterference, ResultOnlyEdgesOrFacesInterfere, ResultInterferenceExists, ResultCanNotPerformCheck }
 Specifies the result of a simple interference check. More...

Public Member Functions

NXOpen::GeometricAnalysis::SimpleInterference::FaceInterferenceMethod FaceInterferenceType ()
 Returns the FaceInterferenceType.
NXOpen::SelectObjectFirstBody ()
 Returns the First Body
Created in NX5.0.0.
std::vector< NXOpen::NXObject * > GetInterferenceResults ()
 Returns the pair(s) of interfering faces or solid(s) of interference between the input bodies.
std::vector< int > GetResults ()
 Returns the pair(s) of interfering faces or solid(s) of interference between the input solid bodies.
bool HighlightNextPair ()
 Highlights the pairs of interfering faces after a GeometricAnalysis::SimpleInterference::PerformCheck .
NXOpen::GeometricAnalysis::SimpleInterference::InterferenceMethod InterferenceType ()
 Returns the InterferenceType.
NXOpen::GeometricAnalysis::SimpleInterference::Result PerformCheck ()
 Perform Interference Check.
void Reset ()
 Frees up resources/results associated with GeometricAnalysis::SimpleInterference object after a call to GeometricAnalysis::SimpleInterference::PerformCheck .
NXOpen::SelectObjectSecondBody ()
 Returns the Second Body
Created in NX5.0.0.
void SetFaceInterferenceType (NXOpen::GeometricAnalysis::SimpleInterference::FaceInterferenceMethod faceInterferenceType)
 Sets the FaceInterferenceType.
void SetInterferenceType (NXOpen::GeometricAnalysis::SimpleInterference::InterferenceMethod interferenceType)
 Sets the InterferenceType.

Detailed Description

Represents the Simple Interference object.

A GeometricAnalysis::SimpleInterference object takes two solid bodies as inputs and the type of interference results to be produced. It can report the first pair of interfering faces between two solids or all pairs of interfering faces. It can also create the interference solid(s) between two bodies.
To create a new instance of this class, use GeometricAnalysis::AnalysisManager::CreateSimpleInterferenceObject

Created in NX5.0.0.


Member Enumeration Documentation

Specifies to "find only first pair of interfering faces" or "all pairs of interfering faces" between the input boides.

Enumerator:
FaceInterferenceMethodFirstPairOnly 

Find first pair of interfering faces.

FaceInterferenceMethodAllPairs 

Find all pairs of interfering faces.

Specifies interference method, i.e., to highlight interfering faces or create interference solid.

Enumerator:
InterferenceMethodInterferingFaces 

Find interfering faces.

InterferenceMethodInterferenceSolid 

Create interference solid.

Specifies the result of a simple interference check.

Enumerator:
ResultNoInterference 

No interference exists between the input bodies.

ResultOnlyEdgesOrFacesInterfere 

Only faces or edges interfere and no solid interference exists between the input bodies.

ResultInterferenceExists 

Interference exists between the input bodies.

Use GeometricAnalysis::SimpleInterference::GetInterferenceResults to obtain the pairs of faces interfering or interference solid(s) created between the input bodies.

ResultCanNotPerformCheck 

An unknown error has occured while performing the interference check.

Check could not be performed between the input bodies.


Member Function Documentation

Returns the First Body
Created in NX5.0.0.



License requirements : None

Returns the pair(s) of interfering faces or solid(s) of interference between the input bodies.

If the GeometricAnalysis::SimpleInterference::InterferenceType and GeometricAnalysis::SimpleInterference::SetInterferenceType is GeometricAnalysis::SimpleInterference::InterferenceMethodInterferingFaces , pair(s) of interfering faces are returned. The first two objects represent the first pair of interfering faces, and next two objects represent the second pair of interering faces and so on. If the GeometricAnalysis::SimpleInterference::FaceInterferenceType and GeometricAnalysis::SimpleInterference::SetFaceInterferenceType is GeometricAnalysis::SimpleInterference::FaceInterferenceMethodFirstPairOnly , only the first pair of interfering faces are returned.

Returns:
Results of Simple Interference
Created in NX6.0.2.

License requirements : None

Returns the pair(s) of interfering faces or solid(s) of interference between the input solid bodies.

nObjects will be 0 if there is no face or solid interference bewteen input bodies. If the GeometricAnalysis::SimpleInterference::InterferenceType and GeometricAnalysis::SimpleInterference::SetInterferenceType is GeometricAnalysis::SimpleInterference::InterferenceMethodInterferingFaces , i.e., report pair(s) of interfering faces, nObjects will be twice the number of pairs and results[0] and results[1] will represent the first pair, results[2*i-1] and results[2*i] represent the i-th pair and so on and results[nObjects-1] and results[nObjects] the last pair. If the GeometricAnalysis::SimpleInterference::FaceInterferenceType and GeometricAnalysis::SimpleInterference::SetFaceInterferenceType is GeometricAnalysis::SimpleInterference::FaceInterferenceMethodFirstPairOnly , .i.e. report the only the first pair of interfering faces, then nObjects will be either 2 or 0.

Returns:
Results of Simple Interference
Deprecated:
Deprecated in NX6.0.2.


Created in NX5.0.0.

License requirements : None

Highlights the pairs of interfering faces after a GeometricAnalysis::SimpleInterference::PerformCheck .

This method is applicable only when GeometricAnalysis::SimpleInterference::InterferenceType and GeometricAnalysis::SimpleInterference::SetInterferenceType is set to GeometricAnalysis::SimpleInterference::InterferenceMethodInterferingFaces and GeometricAnalysis::SimpleInterference::FaceInterferenceType and GeometricAnalysis::SimpleInterference::SetFaceInterferenceType is set to GeometricAnalysis::SimpleInterference::FaceInterferenceMethodAllPairs . When highlighting the next pair, current pair of faces is unhighlighted. Return value is set to true if there are more pairs of faces to be highlighted. If the last pair is reached (i.e., the pair being highlighted in this call is the last pair of faces), return value is set to false.

Returns:
Indicates if there are any more pairs left .
Created in NX5.0.0.

License requirements : None

Returns the InterferenceType.

A value of GeometricAnalysis::SimpleInterference::InterferenceMethodInterferingFaces for GeometricAnalysis::SimpleInterference::InterferenceType and GeometricAnalysis::SimpleInterference::SetInterferenceType reports the pairs of interfering faces between two solids. You can also further specify to report only the first pair of interfering faces or all pairs of interfering faces by GeometricAnalysis::SimpleInterference::FaceInterferenceType and GeometricAnalysis::SimpleInterference::SetFaceInterferenceType . A value of GeometricAnalysis::SimpleInterference::InterferenceMethodInterferenceSolid for GeometricAnalysis::SimpleInterference::InterferenceType and GeometricAnalysis::SimpleInterference::SetInterferenceType creates the interference solid(s) between the two input bodies.
Created in NX5.0.0.

License requirements : None

Perform Interference Check.

GeometricAnalysis::SimpleInterference::PerformCheck should be called after specifiying input bodies to be checked, i.e., GeometricAnalysis::SimpleInterference::FirstBody and GeometricAnalysis::SimpleInterference::SecondBody . The return value GeometricAnalysis::SimpleInterference::Result specifies the type of interference existing between the input bodies. Use GeometricAnalysis::SimpleInterference::GetInterferenceResults to obtain the interfering faces or solid(s) of interference between the input bodis.

Returns:
Indicates the type of interference existing between the input bodies.
Created in NX5.0.0.

License requirements : None

Returns the Second Body
Created in NX5.0.0.



License requirements : None

Sets the InterferenceType.

A value of GeometricAnalysis::SimpleInterference::InterferenceMethodInterferingFaces for GeometricAnalysis::SimpleInterference::InterferenceType and GeometricAnalysis::SimpleInterference::SetInterferenceType reports the pairs of interfering faces between two solids. You can also further specify to report only the first pair of interfering faces or all pairs of interfering faces by GeometricAnalysis::SimpleInterference::FaceInterferenceType and GeometricAnalysis::SimpleInterference::SetFaceInterferenceType . A value of GeometricAnalysis::SimpleInterference::InterferenceMethodInterferenceSolid for GeometricAnalysis::SimpleInterference::InterferenceType and GeometricAnalysis::SimpleInterference::SetInterferenceType creates the interference solid(s) between the two input bodies.
Created in NX5.0.0.

License requirements : None

Parameters:
interferenceTypeinterferencetype

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