All Frameworks Class Hierarchy This Framework Previous Next Indexes
AnalysisMeshingModel Class CATMSHExtIMesher
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---CATMSHExtIMesher
Usage: you can derive this class.
public class CATMSHExtIMesher
Adapter for CATIMSHMesher interface.
Role: This class provides a default implementation for any extension of
CATIMSHMesher. 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:
- CATIMSHMesher
Constructor and Destructor Index
- o
CATMSHExtIMesher()
- Constructor.
- o
~CATMSHExtIMesher()
- Destructor.
Method Index
- o
BeforeUpdating(CATIMSHMeshPart*)
- Perform cleaning operations before updating a Mesh Part.
- o
Check(CATIMSHMeshPart*,CATMSHListOfMeshPart*&)
- Check the supports of the Mesh Part.
- o
CloseEdition()
- Perform mesher-specific operations before exiting edition mode for a Mesh Part.
- o
IsATypeOf(CATIMSHMeshPart*,CATUnicodeString&)
- Query the mesher about the type of the Mesh Part.
Constructor and Destructor
o CATMSHExtIMesher
public CATMSHExtIMesher( | ) |
-
Constructor.
o ~CATMSHExtIMesher
public virtual ~CATMSHExtIMesher( | ) |
-
Destructor. CATExtIVisu
Methods
o BeforeUpdating
-
Perform cleaning 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
- Cleaning operations succesfull.
- E_FAIL
- Cleaning operations failed.
o Check
-
Check the supports of the Mesh Part.
Role: This method is called whenever a support is defined on its
Mesh Part to check if it can be meshed.
It also retreives the parents Mesh Parts if any. A parent Mesh Parts
is a Mesh Parts that should updated before the actual mesh. For example, in
the case of a mesher connecting to geometric parts, the parents Mesh Parts are the one corresponding
to these two parts.
- Parameters:
-
- iMeshPart
- The Mesh Part to check.
- oParentMeshParts
- The list of parents Mesh Parts.
- Returns:
- An HRESULT.
Legal values:
- S_OK
- The support are valid and can be meshed.
- E_FAIL
- The support are not valid or the parent Mesh Parts can not be found.
o CloseEdition
public virtual HRESULT CloseEdition( | ) |
-
Perform 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
CATIMSHMeshPart.CloseEdition ).
Default implementation does not execute any operations.
- Parameters:
-
- iMeshPart
- The Mesh Part.
- Returns:
- An HRESULT.
Legal values:
- S_OK
- Operations succesfull.
- E_FAIL
- Operations failed.
o IsATypeOf
-
Query the mesher about the type of the Mesh Part.
- Parameters:
-
- iMeshPart
- The Mesh Part to check.
- iType
- String representing the query made to the mesher.
Legal values:
- "1D"
- Is the mesher generating 1D finite elements?
- "2D"
- Is the mesher generating 2D finite elements?
- "3D"
- Is the mesher generating 3D finite elements?
- "Connection"
- Is the mesher generating connecting elements between meshes?
- Returns:
- The result of the query.
Legal values:
- 1
- The answer is yes.
- 0
- The answer is no.
This object is included in the file: CATMSHExtIMesher.h
If needed, your Imakefile.mk should include the module: CATAmtModel