Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GeomTSTT Class Reference

A base class describing a Mesquite::MeshDomain implemented on top of the TSTT geometry and classification interfaces. More...

#include <GeomTSTT.hpp>

Inheritance diagram for GeomTSTT:
Collaboration diagram for GeomTSTT:

Public Member Functions

virtual ~GeomTSTT ()
 
virtual ~GeomTSTT ()
 
- Public Member Functions inherited from MeshDomain
virtual ~MeshDomain ()
 
virtual DomainHint hint () const =0
 Give a hint about the nature of the domain for better performance. More...
 
virtual void snap_to (Mesh::EntityHandle entity_handle, Vector3D &coordinate) const =0
 Modifies "coordinate" so that it lies on the domain to which "entity_handle" is constrained. More...
 
virtual void normal_at (Mesh::EntityHandle entity_handle, Vector3D &coordinate) const =0
 Returns the normal of the domain to which "entity_handle" is constrained. More...
 
virtual void normal_at (Mesh::EntityHandle handle, Vector3D coordinates[], unsigned count, MsqError &err) const =0
 evaluate surface normals More...
 
virtual void closest_point (Mesh::EntityHandle handle, const Vector3D &position, Vector3D &closest, Vector3D &normal, MsqError &err) const =0
 evaluate closest point and normal More...
 

Static Public Member Functions

static GeomTSTTcreate (TSTTG::Geometry &geom, TSTTM::Mesh &mesh, TSTTR::Relate &assoc, MsqError &err)
 Create MeshDommain from TSTT classification and geometry interfaces. More...
 
static GeomTSTTcreate (TSTTG::Geometry &geom, void *geom_ent_handle, MsqError &err)
 Create a MeshDomain for a single geometric entity that uses the TSTT geometry interface for geometric evaluation. More...
 
static GeomTSTTcreate (TSTTG::Geometry &geom, TSTTM::Mesh &mesh, TSTTR::Relate &assoc, MsqError &err)
 Create MeshDommain from TSTT classification and geometry interfaces. More...
 
static GeomTSTTcreate (TSTTG::Geometry &geom, void *geom_ent_handle, MsqError &err)
 Create a MeshDomain for a single geometric entity that uses the TSTT geometry interface for geometric evaluation. More...
 

Detailed Description

A base class describing a Mesquite::MeshDomain implemented on top of the TSTT geometry and classification interfaces.

A base class for Mesquite::MeshDomain implementations on top of the TSTT geometry and classification interfaces and static methods for constructing concrete implementations. The concrete implementations are not themselves in a header to avoid the need to include all TSTT headers if this header is included, for example indirectly through Mesquite_all_headers.hpp

Definition at line 62 of file includeLinks/GeomTSTT.hpp.

Constructor & Destructor Documentation

~GeomTSTT ( )
virtual

Definition at line 226 of file GeomTSTT.cpp.

226 {}
virtual ~GeomTSTT ( )
virtual

Member Function Documentation

GeomTSTT * create ( TSTTG::Geometry &  geom,
TSTTM::Mesh &  mesh,
TSTTR::Relate &  assoc,
MsqError err 
)
static

Create MeshDommain from TSTT classification and geometry interfaces.

Create an instance of an implementation of MeshDomain that uses the TSTTR/Lasso interface to get a handle for the geometric entity associated with a mesh entity and the TSTT geometry interface to evaluate the geometry.

Definition at line 198 of file GeomTSTT.cpp.

References MsqError::INTERNAL_ERROR, MSQ_SETERR, and Mesquite::process_tstt_error().

202 {
203  try {
204  return new DomainTSTT( geom, mesh, relate );
205  }
206  catch (TSTTB::Error& tstt_err ) {
208  }
209  return 0;
210 }
#define MSQ_SETERR(err)
Macro to set error - use err.clear() to clear.
static msq_std::string process_tstt_error(TSTTB::Error &tstt_err)

Here is the call graph for this function:

static GeomTSTT* create ( TSTTG::Geometry &  geom,
TSTTM::Mesh &  mesh,
TSTTR::Relate &  assoc,
MsqError err 
)
static

Create MeshDommain from TSTT classification and geometry interfaces.

Create an instance of an implementation of MeshDomain that uses the TSTTR/Lasso interface to get a handle for the geometric entity associated with a mesh entity and the TSTT geometry interface to evaluate the geometry.

static GeomTSTT* create ( TSTTG::Geometry &  geom,
void *  geom_ent_handle,
MsqError err 
)
static

Create a MeshDomain for a single geometric entity that uses the TSTT geometry interface for geometric evaluation.

Create a TSTT geometry MeshDomain for a single geometric entity. This implementation will be faster than the one that uses the classification interface because it assumes all entities in the mesh are in the interior of the single geometric entity specified. This implemenation in intended to be used only in the case where the mesh of a single surface is being smoothed and the mesh vertices on the boundary of the surface are fixed.

GeomTSTT * create ( TSTTG::Geometry &  geom,
void *  geom_ent_handle,
MsqError err 
)
static

Create a MeshDomain for a single geometric entity that uses the TSTT geometry interface for geometric evaluation.

Create a TSTT geometry MeshDomain for a single geometric entity. This implementation will be faster than the one that uses the classification interface because it assumes all entities in the mesh are in the interior of the single geometric entity specified. This implemenation in intended to be used only in the case where the mesh of a single surface is being smoothed and the mesh vertices on the boundary of the surface are fixed.

Definition at line 212 of file GeomTSTT.cpp.

References MsqError::INTERNAL_ERROR, MSQ_SETERR, and Mesquite::process_tstt_error().

215 {
216  try {
217  return new GeomEntTSTT( geom, geom_ent_handle );
218  }
219  catch (TSTTB::Error& tstt_err ) {
221  }
222  return 0;
223 }
#define MSQ_SETERR(err)
Macro to set error - use err.clear() to clear.
static msq_std::string process_tstt_error(TSTTB::Error &tstt_err)

Here is the call graph for this function:


The documentation for this class was generated from the following files: