CATTTRSUseItf Interface CATIRGETopology
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIRGETopology
Interface that allows to retreive topological information
Role: Topologiy retreive topological information: Cells from a RGE
Method Index
- o
GetCells(CATLISTP(CATCell)**)
- Retreive the cells of a RGE.
- o
GetCellsAndBodies(CATLISTV(CATBaseUnknown_var)**,CATLISTV(CATBaseUnknown_var)**)
- Retreive the cells and their bodies of a RGE.
- o
GetOutsideMaterialCoefficientOnNormal(int*)
- Retrieves the coefficient to apply on the surface normal.
- o
GetTransformation(CATMathTransformation**)
- Get the transformation to apply to the cells.
Methods
o GetCells
public virtual GetCells( | | opCellList) |
-
Retreive the cells of a RGE.
- Parameters:
-
- opCellList
- List of the Cells of the RGE
as a explicit AddRef is done on the Cells,
after using opCellList, do a Release() on each its member
before deleting the list.
Example of utilisation :
CATLISTP (CATCell) *List;
RGETopology -> GetCell (&List);
...
int CellCount = List->Size();
for (int CellIdx=1; CellIdx<=CellCount; CellIdx++)
{
*List[CellIdx]->Release();
}
delete List;
...
o GetCellsAndBodies
public virtual GetCellsAndBodies( | | opCellList, |
| | opBodyList) |
-
Retreive the cells and their bodies of a RGE.
- Parameters:
-
- opCellList
- List of the Cells of the RGE
- pListBody
- List of the Bodies of cells.
Example of utilisation :
CATLISTV(CATBaseUnknown_var)* pListCell = NULL;
CATLISTV(CATBaseUnknown_var)* pListBody = NULL;
HRESULT rc = piRGETopology -> GetCellsAndBodies (&pListCell, &pListBody);
if( SUCCEEDED(rc) )
{
int CellCount = pListCell -> Size();
for (int CellIdx=1; CellIdx<=CellCount; CellIdx++)
{
...
}
delete pListCell;
pListCell = NULL;
delete pListBody;
pListBody = NULL;
}
...
o GetOutsideMaterialCoefficientOnNormal
public virtual GetOutsideMaterialCoefficientOnNormal( | | oCoefficient) |
-
Retrieves the coefficient to apply on the surface normal.
The result is valid when the cells returned by the GetCells method are faces.
- Parameters:
-
- oCoefficient
- 1 if the orientation of material and geometry underlying the face are the same.
-1 if the orientation of material and geometry underlying the face are opposite.
0 if the system didn't succeed in computing the result.
o GetTransformation
public virtual GetTransformation( | | oMathTransfo) |
-
Get the transformation to apply to the cells.
- Parameters:
-
- oMathTransfo
- matrix of transformation.
This object is included in the file: CATIRGETopology.h
If needed, your Imakefile.mk should include the module: CATTTRSUseItf
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.