GMOperatorsInterfaces Interface CATICGMHybIntersect
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATICGMHybIntersect
Class defining the operator that intersects two bodies.
This operator operates on the 2D (CATShell), 1D (CATWire) and 0D (CATVertexInVolume)
domains of a CATBody.
It follows the general frame of all operator and satisfies to the smart mechanism: the
input bodies are not modified. A new resulting body is created,
possibly sharing data with the input bodies.
- CATICGMHybIntersect is created with the CATCGMCreateTopIntersect global function.
- It must be released with the Release method after use.
- It is not streamable.
- The intersection can be restricted on a given domain on each body with the methods
SetFirstDomainToIntersect and SetSecondDomainToIntersect
- The result is accessed with the GetResult method. If you do not want
to keep the resulting body, use the method to remove it from the geometric factory.
- When two coplanar skins are intersected, the returned body is a wire body along the boundary
of the intersection.
- See also:
-
Method Index
- o
GetTangentDesignCells(CATLISTP(CATCell)&)
- Retrieves the list of tangent cells.
- o
GetTangentDesignMode()
- Retrieves the tangent design mode.
- o
IsResultTangentDesign()
- Retrieves the result of the tangent design analysis.
- o
SetFirstDomainToIntersect(CATDomain*)
- Defines which domain of the first body must be intersected.
- o
SetSecondDomainToIntersect(CATDomain*)
- Defines which domain of the second body must be intersected.
- o
SetWarningOnTangentDesign(int)
- (De)activates the detection of cells which are tangent to each other.
Methods
o GetTangentDesignCells
public virtual GetTangentDesignCells( | | oListOfCells) |
-
Retrieves the list of tangent cells.
pIntersectOpe->SetWarningOnTangentDesign(1);
...
pIntersectOpe->Run();
CATBody *pBody = pIntersectOpe->GetResult();
if (pIntersectOpe->IsResultTangentDesign())
{
CATLISTP(CATCell) ListOfCells;
pIntersectOpe->GetTangentDesignCells(ListOfCells);
...
}
- Parameters:
-
- oListOfCells
- The list of tangent cells.
- Returns:
-
- 0: no tangent cells have been detected
- 1: tangent cells have been detected.
o GetTangentDesignMode
public virtual GetTangentDesignMode( | ) |
-
Retrieves the tangent design mode.
- Returns:
-
- 0: the "tangent design" mode is not activated
- 1: the "tangent design" mode is activated.
o IsResultTangentDesign
public virtual IsResultTangentDesign( | ) |
-
Retrieves the result of the tangent design analysis.
- Returns:
-
- 0: no tangent cells have been detected
- 1: tangent cells have been detected.
o SetFirstDomainToIntersect
public virtual SetFirstDomainToIntersect( | | iDomainOnFirstBody) |
-
Defines which domain of the first body must be intersected.
- Parameters:
-
- iDomainOnFirstBody
- The pointer to the domain to intersect.
o SetSecondDomainToIntersect
public virtual SetSecondDomainToIntersect( | | iDomainOnSecondBody) |
-
Defines which domain of the second body must be intersected.
- Parameters:
-
- iDomainOnSecondBody
- The pointer to the domain to intersect.
o SetWarningOnTangentDesign
public virtual SetWarningOnTangentDesign( | | yes_or_no | = 1) |
-
(De)activates the detection of cells which are tangent to each other.
The tangent cells are retrieved by using the GetTangentDesignCells method.
pIntersectOpe->SetWarningOnTangentDesign(1);
...
pIntersectOpe->Run();
CATBody *pBody = pIntersectOpe->GetResult();
if (pIntersectOpe->IsResultTangentDesign())
{
CATLISTP(CATCell) ListOfCells;
pIntersectOpe->GetTangentDesignCells(ListOfCells);
...
}
- Parameters:
-
- yes_or_no
-
- 0: deactivates the "tangent design" mode
- 1: activates the "tangent design" mode.
This object is included in the file: CATICGMHybIntersect.h
If needed, your Imakefile.mk should include the module: CATGMOperatorsInterfaces
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.