CATFmtModelInterfaces CATFmtExtIMesher

Usage: you can derive this class.


public class CATFmtExtIMesher

Adapter for CATIFmtMesher interface.
Role: This class provides a default implementation for any extension of . That means one should derive from this class to implement the mesher algorithm to build the finite element mesh of a Mesh Part.

See also:


Constructor and Destructor Index


o CATFmtExtIMesher()
Constructor.
o ~CATFmtExtIMesher()
Destructor.

Method Index


o AfterUpdating(CATIFmtMeshPart*)
Performs cleaning operations after updating a Mesh Part.
o BeforeUpdating(CATIFmtMeshPart*)
Performs initialization operations before updating a Mesh Part.
o CloseEdition()
Performs mesher-specific operations before exiting edition mode for a Mesh Part.
o GetMeshedBodies(CATIFmtMeshPart*,CATFmtListOfPath*&)
o GetMeshedShapes(CATIFmtMeshPart*,CATFmtListOfPath*&)
o Invalidate(CATIFmtMeshPart*)
Invalidates the mesh and the topology corresponding to the Mesh Part.
o IsMeshingBodies(CATIFmtMeshPart*,CATBoolean&)
Queries the mesher to know if the Mesh Part is meshing 3D bodies or not.
o IsMeshingShapes(CATIFmtMeshPart*,CATBoolean&)
Queries the mesher to know if the Mesh Part is meshing 3D shapes or not.
o OnMeshPartRemove(CATIFmtMeshPart*)
Performs cleaning operations before removing a Mesh Part.

Constructor and Destructor


o CATFmtExtIMesher
public CATFmtExtIMesher()
Constructor.
o ~CATFmtExtIMesher
public virtual ~CATFmtExtIMesher()
Destructor. CATFmtExtIMesher

Methods


o AfterUpdating
public virtual AfterUpdating( iMeshPart)
Performs cleaning operations after updating a Mesh Part.
Role: This method is called after updating a Mesh Part and should perform necessary cleaning operations.
Default implementation does nothing.
Parameters:
iMeshPart
The Mesh Part.
Returns:
An HRESULT.
Legal values:
S_OK
Cleaning operations successful.
E_FAIL
Cleaning operations failed.
o BeforeUpdating
public virtual BeforeUpdating( iMeshPart)
Performs initialization operations before updating a Mesh Part.
Role: This method is called before updating a Mesh Part and should perform necessary cleaning operations.
Default implementation deletes all finite elements belonging to the Mesh Part (if any) and also deletes the corresponding nodes if they become free.
Take care when overloading this method to the potential impacts.
Parameters:
iMeshPart
The Mesh Part.
Returns:
An HRESULT.
Legal values:
S_OK
Initialization operations successful.
E_FAIL
Initialization operations failed.
o CloseEdition
public virtual CloseEdition()
Performs mesher-specific operations before exiting edition mode for a Mesh Part.
Role: This method is called before exiting edition mode for a Mesh Part and can be used to perform mesher-specific operations ( see ).
Default implementation does not execute any operations.
Parameters:
iMeshPart
The Mesh Part.
Returns:
An HRESULT.
Legal values:
S_OK
Operations successful.
E_FAIL
Operations failed.
o GetMeshedBodies
public virtual GetMeshedBodies( iMeshPart,
oMeshedBodies)
Deprecated:
R417 This method is replaced with Retrieves the 3D Bodies meshed by the Mesh Part.
Role: This method is called to retrieve the 3D Bodies meshed by the Mesh Part.
Parameters:
iMeshPart
The Mesh Part.
oMeshedBodies
The 3D Bodies meshed by the Mesh Part.
Returns:
An HRESULT.
Legal values:
S_OK
The meshed 3D Bodies has been successfully retrieved.
E_FAIL
The retrieval of the meshed 3D Bodies failed.
o GetMeshedShapes
public virtual GetMeshedShapes( iMeshPart,
oMeshedShapes)
Deprecated:
R417 This method is replaced with Retrieves the 3D Shapes meshed by the Mesh Part.
Role: This method is called to retrieve the 3D Shapes meshed by the Mesh Part.
Parameters:
iMeshPart
The Mesh Part.
oMeshedShapes
The 3D Shapes meshed by the Mesh Part.
Returns:
An HRESULT.
Legal values:
S_OK
The meshed 3D Shapes has been successfully retrieved.
E_FAIL
The retrieval of the meshed 3D Shapes failed.
o Invalidate
public virtual Invalidate( iMeshPart)
Invalidates the mesh and the topology corresponding to the Mesh Part. The mesh and the topology will have to be regenerated.
Role: This method is called to regenerate the mesh and the topology from scratch.
Parameters:
iMeshPart
The Mesh Part.
Returns:
An HRESULT.
Legal values:
S_OK
Mesh and topology successfully invalidated.
E_FAIL
Invalidation failed.
o IsMeshingBodies
public virtual IsMeshingBodies( iMeshPart,
oIsMeshingBodies)
Queries the mesher to know if the Mesh Part is meshing 3D bodies or not.
Parameters:
iMeshPart
The Mesh Part.
oIsMeshingBodies
The query result.
Returns:
An HRESULT.
Legal values:
S_OK
The query has been proceeded with success.
E_FAIL
Query failed.
o IsMeshingShapes
public virtual IsMeshingShapes( iMeshPart,
oIsMeshingShapes)
Queries the mesher to know if the Mesh Part is meshing 3D shapes or not.
Parameters:
iMeshPart
The Mesh Part.
oIsMeshingShapes
The query result.
Returns:
An HRESULT.
Legal values:
S_OK
The query has been proceeded with success.
E_FAIL
Query failed.
o OnMeshPartRemove
public virtual OnMeshPartRemove( iMeshPart)
Performs cleaning operations before removing a Mesh Part.
Role: This method is called before removing a Mesh Part and performs necessary cleaning operations.
Parameters:
iMeshPart
The Mesh Part.
Returns:
An HRESULT.
Legal values:
S_OK
Cleaning operations successful.
E_FAIL
Cleaning operations failed.

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

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.