All Frameworks  Class Hierarchy  This Framework  Indexes   

GSMInterfaces Interface CATIGSMTrim

Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.


interface CATIGSMTrim

Interface to trim feature.
Role: Allows you to access data of the Trim feature created by using two elements (two curves or two surfaces) and two orientations

See also:
CATIGSMFactory.CreateTrim


Method Index


o AddElem(CATISpecObject_var&)
Appends an element to trim.
o AddElementToKeep(CATISpecObject_var)
Adds an element to specifications.
o AddElementToRemove(CATISpecObject_var)
Adds an element to specifications.
o GetAutomaticExtrapolationMode(CATBoolean&)
Queries whether automatic extrapolation mode is activated or not.
o GetConnexMode(CATBoolean&)
Gets the connected mode.
o GetElem(CATISpecObject_var&,int)
Gets the trimmed feature at a given index.
o GetElems(CATLISTV(CATISpecObject_var)&)
Gets the list of trimmed features, removing duplicated.
o GetFirstElem(CATISpecObject_var&)
o GetFirstOrientation(CATGSMOrientation&)
o GetIntersectionComputation(CATBoolean&)
Queries whether intersection is computed or not.
o GetIntersection(CATISpecObject_var&)
Gets the intersection.
o GetKeptElem(CATISpecObject_var&,int)
Gets the kept feature at a given index.
o GetManifoldMode(CATBoolean&)
Gets the Manifold mode.
o GetMode(int&)
Gets Trim mode.
o GetNbElem(int&)
Gets the number of elements: couple(element, index of portion to keep on element).
o GetNbElementsToKeep(int&)
Gets the number of elements to keep.
o GetNbElementsToRemove(int&)
Gets the number of elements to remove.
o GetNextOrientation(CATGSMOrientation&,int)
Gets Orientation used to compute the feature, referring to the next trimmed element.
o GetNumberOfIntersections(CATISpecObject_var,int&)
Gets the number of intersections with the other elements, the index of the element, in Pieces mode.
o GetPortionToKeep(int&,int)
Gets a portion to keep number, giving the index of the element.
o GetPreviousOrientation(CATGSMOrientation&,int)
Gets Orientation used to compute the feature, referring to the previous trimmed element.
o GetRemovedElem(CATISpecObject_var&,int)
Gets the removed feature at a given index.
o GetSecondElem(CATISpecObject_var&)
o GetSecondOrientation(CATGSMOrientation&)
o GetSimplify(CATBoolean&)
Queries whether resulting topology is simplified or not.
o GetSupportElem(CATISpecObject_var&)
Gets the support of the curves to trim (optional).
o InsertElem(CATISpecObject_var,int)
Inserts an element.
o InvertFirstOrientation()
o InvertNextOrientation(int)
Inverts the orientation used to compute the trim refering the next trimmed element.
o InvertPreviousOrientation(int)
Inverts the orientation used to compute the trim refering the previous trimmed element.
o InvertSecondOrientation()
o MigrateFromBinary()
Migrate binary feature to Standard mode.
o RemoveElem(int)
Removes a feature at a given index.
o RemoveElementToKeep(int)
Removes an element from specifications.
o RemoveElementToRemove(int)
Removes an element from specifications.
o SetAutomaticExtrapolationMode(CATBoolean)
Sets or unsets the automatic extrapolation mode.
o SetConnexMode(CATBoolean)
Sets the connected mode.
o SetElem(CATISpecObject_var,int)
Modifies the trimmed feature at a given index.
o SetFirstElem(CATISpecObject_var)
o SetFirstOrientation(CATGSMOrientation)
o SetIntersectionComputation(CATBoolean)
Sets or unsets the computation of intersection.
o SetManifoldMode(CATBoolean)
Sets the Manifold mode.
o SetMode(int)
Sets Trim mode.
o SetNextOrientation(CATGSMOrientation,int)
Sets the orientation used to compute the feature, referring to the next trimmed element.
o SetNumberOfIntersections(CATISpecObject_var,int)
Sets the number of intersections with the other elements, in Pieces mode.
o SetPortionToKeep(int,int)
Sets a portion to keep number in Pieces mode.
o SetPreviousOrientation(CATGSMOrientation,int)
Sets the orientation used to compute the feature, referring to the previous trimmed element.
o SetSecondElem(CATISpecObject_var)
o SetSecondOrientation(CATGSMOrientation)
o SetSimplify(CATBoolean)
Sets or unsets the simplification of the resulting topology.
o SetSupportElem(CATISpecObject_var)
Sets the support of the curves to trim (optional).

Methods


o AddElem
public virtual AddElem( const iElem)
Appends an element to trim.
Parameters:
iElem
feature to trim
o AddElementToKeep
public virtual AddElementToKeep( const iElement)
Adds an element to specifications. This element will be kept.
Parameters:
iElement
Element to keep.
o AddElementToRemove
public virtual AddElementToRemove( const iElement)
Adds an element to specifications. This element will be removed.
Parameters:
iElement
Element to remove.
o GetAutomaticExtrapolationMode
public virtual GetAutomaticExtrapolationMode( oMode)
Queries whether automatic extrapolation mode is activated or not.
Parameters:
oMode
Extrapolation mode on (TRUE) or off (FALSE)
o GetConnexMode
public virtual GetConnexMode( oConnex)
Gets the connected mode.
Parameters:
oConnex
CATFalse = non connected elements, CATTrue = only connected elements
See also:
CATBoolean
o GetElem
public virtual GetElem( oElem,
const iRank)
Gets the trimmed feature at a given index.
Parameters:
oElem
trimmed feature
iRank
Index of one of the trimmed features
o GetElems
public virtual GetElems( oElems)
Gets the list of trimmed features, removing duplicated.
Parameters:
oElems
The list of trimmed features
o GetFirstElem
public virtual GetFirstElem( oElem)
Deprecated:
V5R17 CATIGSMTrim#GetElem Gets the first feature to trim (a curve or surface).
Parameters:
oElem
first feature to trim
o GetFirstOrientation
public virtual GetFirstOrientation( oOrientation)
Deprecated:
V5R17 CATIGSMTrim#GetNextOrientation Gets the first orientation used to compute the trim. Orientation specifies kept parts of first feature.

When trimming surfaces :
- If CATGSMSameOrientation: Kept parts are specified by the "natural" normal to the second feature
- If CATGSMInvertOrientation: Kept parts are specified by the inverse of the "natural" normal to the second feature

When trimming curves (without support):
- If CATGSMSameOrientation: Kept parts are from beginning of the curve to the first intersection,
and ,if there is one, from the second to the third intersection and so on until the end of the curve...
- If CATGSMInvertOrientation: Kept parts are from the first intersection to the second (if there is one),
and, if there is one, from the third to the fourth and so on until the end of the curve...

When trimming curves on support:
- If CATGSMSameOrientation:
Kept parts of the first curve are specified by the result of the cross product : normal(support surface)^tangent(second curve)
- If CATGSMInvertOrientation:
Kept parts of the first curve are specified by the inverse of the result of the cross product : normal(support surface)^tangent(second curve)

Parameters:
oOrientation
first orientation used to compute the trim
o GetIntersectionComputation
public virtual GetIntersectionComputation( oMode)
Queries whether intersection is computed or not.
Parameters:
oMode
Computation option on (TRUE) or off (FALSE)
o GetIntersection
public virtual GetIntersection( oElem)
Gets the intersection.
Parameters:
oElem
Intersection
o GetKeptElem
public virtual GetKeptElem( oElem,
const iRank)
Gets the kept feature at a given index.
Parameters:
oElem
Kept feature
iRank
Index of one of the kept features
o GetManifoldMode
public virtual GetManifoldMode( oIsManifold)
Gets the Manifold mode.
Parameters:
oIsManifold
CATFalse = the check is not performed (non manifold result is allowed), CATTrue = the check is performed.
See also:
CATBoolean
o GetMode
public virtual GetMode( oMode)
Gets Trim mode.
Parameters:
oMode
=1 Standard =2 Pieces
o GetNbElem
public virtual GetNbElem( oNbElem)
Gets the number of elements: couple(element, index of portion to keep on element).
Parameters:
oNbElem
Number of elements
o GetNbElementsToKeep
public virtual GetNbElementsToKeep( oNbElementsToKeep)
Gets the number of elements to keep.
Parameters:
oNbElementsToKeep
Number of elements to keep
o GetNbElementsToRemove
public virtual GetNbElementsToRemove( oNbElementsToRemove)
Gets the number of elements to remove.
Parameters:
oNbElementsToRemove
Number of elements to remove
o GetNextOrientation
public virtual GetNextOrientation( oOrientation,
const iRank=1)
Gets Orientation used to compute the feature, referring to the next trimmed element.
Parameters:
oOrientation
Orientation
iRank
index of the trimmed feature
o GetNumberOfIntersections
public virtual GetNumberOfIntersections( const iElem,
oNbIntersections)
Gets the number of intersections with the other elements, the index of the element, in Pieces mode. If iNumberOfIntersections<0, No check of the number of intersections at Update
Parameters:
iElem
trimmed feature
oNbIntersections
Number of intersections
o GetPortionToKeep
public virtual GetPortionToKeep( oPortionNumber,
const iRank)
Gets a portion to keep number, giving the index of the element.
Parameters:
oPortionNumber
Index of portion to keep on the element
iRank
Index of the trimmed element
o GetPreviousOrientation
public virtual GetPreviousOrientation( oOrientation,
const iRank=1)
Gets Orientation used to compute the feature, referring to the previous trimmed element.
Parameters:
oOrientation
Orientation
iRank
index of the trimmed feature
o GetRemovedElem
public virtual GetRemovedElem( oElem,
const iRank)
Gets the removed feature at a given index.
Parameters:
oElem
Removed feature
iRank
Index of one of the removed features
o GetSecondElem
public virtual GetSecondElem( oElem)
Deprecated:
V5R17 CATIGSMTrim#GetElem Gets the second feature to trim (a curve or surface).
Parameters:
oElem
second feature to cut
o GetSecondOrientation
public virtual GetSecondOrientation( oOrientation)
Deprecated:
V5R17 CATIGSMTrim#GetPreviousOrientation Gets the second orientation used to compute the trim. Orientation specifies kept parts of second feature.

When trimming surfaces :
- If CATGSMSameOrientation: Kept parts are specified by the "natural" normal to the first feature
- If CATGSMInvertOrientation: Kept parts are specified by the inverse of the "natural" normal to the first feature

When trimming curves (without support):
- If CATGSMSameOrientation: Kept parts are from beginning of the curve to the first intersection,
and ,if there is one, from the second to the third intersection and so on until the end of the curve...
- If CATGSMInvertOrientation: Kept parts are from the first intersection to the second (if there is one),
and, if there is one, from the third to the fourth and so on until the end of the curve...

When trimming curves on support:
- If CATGSMSameOrientation:
Kept parts of the second curve are specified by the result of the cross product : normal(support surface)^tangent(first curve)
- If CATGSMInvertOrientation:
Kept parts of the second curve are specified by the inverse of the result of the cross product : normal(support surface)^tangent(first curve)

Parameters:
oOrientation
second orientation used to compute the trim
o GetSimplify
public virtual GetSimplify( oMode)
Queries whether resulting topology is simplified or not.
Parameters:
oMode
Simplification option on (TRUE) or off (FALSE)
o GetSupportElem
public virtual GetSupportElem( oElem)
Gets the support of the curves to trim (optional).
Parameters:
oElem
Support surface
o InsertElem
public virtual InsertElem( const iElem,
const iPosition)
Inserts an element.
Parameters:
iPosition
The position of the element in the list of elements.
iElem
the element.
o InvertFirstOrientation
public virtual InvertFirstOrientation()
Deprecated:
V5R17 CATIGSMTrim#InvertNextOrientation Inverts the first orientation used to compute the trim.
o InvertNextOrientation
public virtual InvertNextOrientation( const iRank=1)
Inverts the orientation used to compute the trim refering the next trimmed element.
o InvertPreviousOrientation
public virtual InvertPreviousOrientation( const iRank=1)
Inverts the orientation used to compute the trim refering the previous trimmed element.
o InvertSecondOrientation
public virtual InvertSecondOrientation()
Deprecated:
V5R17 CATIGSMTrim#InvertPreviousOrientation Inverts the second orientation used to compute the trim.
o MigrateFromBinary
public virtual MigrateFromBinary()
Migrate binary feature to Standard mode.
o RemoveElem
public virtual RemoveElem( const iRank)
Removes a feature at a given index.
Parameters:
iRank
index of the feature
o RemoveElementToKeep
public virtual RemoveElementToKeep( const iRank)
Removes an element from specifications.
Parameters:
iRank
Index of the kept element.
o RemoveElementToRemove
public virtual RemoveElementToRemove( const iRank)
Removes an element from specifications.
Parameters:
iRank
Index of the removed element.
o SetAutomaticExtrapolationMode
public virtual SetAutomaticExtrapolationMode( iMode)
Sets or unsets the automatic extrapolation mode.
Parameters:
iMode
Extrapolation mode on (TRUE) or off (FALSE)
o SetConnexMode
public virtual SetConnexMode( iConnex)
Sets the connected mode.
Parameters:
iConnex
CATTrue = the check of connexity is enable, CATFalse = the check of connexity is disable.
See also:
CATBoolean
o SetElem
public virtual SetElem( const iElem,
const iRank)
Modifies the trimmed feature at a given index. Use AddElem method to specify a new trimmed element
Parameters:
iElem
trimmed feature
iRank
Index of one of the trimmed features
o SetFirstElem
public virtual SetFirstElem( const iElem)
Deprecated:
V5R17 CATIGSMTrim#SetElem Sets the first feature to trim (a curve or surface).
Parameters:
iElem
first feature to trim
o SetFirstOrientation
public virtual SetFirstOrientation( iOrientation)
Deprecated:
V5R17 CATIGSMTrim#SetNextOrientation(1) Sets the first orientation used to compute the trim. Orientation specifies kept parts of first feature.

When trimming surfaces :
- If CATGSMSameOrientation: Kept parts are specified by the "natural" normal to the second feature
- If CATGSMInvertOrientation: Kept parts are specified by the inverse of the "natural" normal to the second feature

When trimming curves (without support):
- If CATGSMSameOrientation: Kept parts are from beginning of the curve to the first intersection,
and ,if there is one, from the second to the third intersection and so on until the end of the curve...
- If CATGSMInvertOrientation: Kept parts are from the first intersection to the second (if there is one),
and, if there is one, from the third to the fourth and so on until the end of the curve...

When trimming curves on support:
- If CATGSMSameOrientation:
Kept parts of the first curve are specified by the result of the cross product : normal(support surface)^tangent(second curve)
- If CATGSMInvertOrientation:
Kept parts of the first curve are specified by the inverse of the result of the cross product : normal(support surface)^tangent(second curve)

Parameters:
iOrientation
first orientation used to compute the trim
o SetIntersectionComputation
public virtual SetIntersectionComputation( iMode)
Sets or unsets the computation of intersection.
Parameters:
iMode
Computation option on (TRUE) or off (FALSE)
o SetManifoldMode
public virtual SetManifoldMode( iIsManifold)
Sets the Manifold mode.
Parameters:
iIsManifold
CATFalse = the check is not performed (non manifold result is allowed), CATTrue = the check is performed.
See also:
CATBoolean
o SetMode
public virtual SetMode( const iMode)
Sets Trim mode.
Parameters:
iMode
=1 Standard =2 Pieces
o SetNextOrientation
public virtual SetNextOrientation( iOrientation,
iRank)
Sets the orientation used to compute the feature, referring to the next trimmed element.
Parameters:
iOrientation
Orientation
iRank
index of the feature
o SetNumberOfIntersections
public virtual SetNumberOfIntersections( const iElem,
const iNbIntersections)
Sets the number of intersections with the other elements, in Pieces mode. If iNumberOfIntersections<0, No check of the number of intersections at Update
Parameters:
iElem
trimmed feature
iNumberOfIntersections
Number of intersections
o SetPortionToKeep
public virtual SetPortionToKeep( const iPortionNumber,
const iRank)
Sets a portion to keep number in Pieces mode.
Parameters:
iPortionNumber
Index of portion to keep on the element
iRank
Index of the trimmed element
o SetPreviousOrientation
public virtual SetPreviousOrientation( iOrientation,
iRank)
Sets the orientation used to compute the feature, referring to the previous trimmed element.
Parameters:
iOrientation
Orientation
iRank
index of the feature
o SetSecondElem
public virtual SetSecondElem( const iElem)
Deprecated:
V5R17 CATIGSMTrim#SetElem Sets the second feature to trim (a curve or surface).
Parameters:
iElem
second feature to cut
o SetSecondOrientation
public virtual SetSecondOrientation( iOrientation)
Deprecated:
V5R17 CATIGSMTrim#SetPreviousOrientation(1) Sets the second orientation used to compute the trim. Orientation specifies kept parts of second feature.

When trimming surfaces :
- If CATGSMSameOrientation: Kept parts are specified by the "natural" normal to the first feature
- If CATGSMInvertOrientation: Kept parts are specified by the inverse of the "natural" normal to the first feature

When trimming curves (without support):
- If CATGSMSameOrientation: Kept parts are from beginning of the curve to the first intersection,
and ,if there is one, from the second to the third intersection and so on until the end of the curve...
- If CATGSMInvertOrientation: Kept parts are from the first intersection to the second (if there is one),
and, if there is one, from the third to the fourth and so on until the end of the curve...

When trimming curves on support:
- If CATGSMSameOrientation:
Kept parts of the second curve are specified by the result of the cross product : normal(support surface)^tangent(first curve)
- If CATGSMInvertOrientation:
Kept parts of the second curve are specified by the inverse of the result of the cross product : normal(support surface)^tangent(first curve)

Parameters:
iOrientation
second orientation used to compute the trim
o SetSimplify
public virtual SetSimplify( iMode)
Sets or unsets the simplification of the resulting topology.
Parameters:
iMode
Simplification option on (TRUE) or off (FALSE)
o SetSupportElem
public virtual SetSupportElem( const iElem)
Sets the support of the curves to trim (optional).
Parameters:
iElem
Support surface

This object is included in the file: CATIGSMTrim.h
If needed, your Imakefile.mk should include the module: CATGitInterfaces

Copyright © 2003, Dassault Systèmes. All rights reserved.