Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GeomEntTSTT Class Reference
Inheritance diagram for GeomEntTSTT:
Collaboration diagram for GeomEntTSTT:

Public Member Functions

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

Private Attributes

void * geomEntHandle
 A handle for the geometry entity to evaluate. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GeomTSTT
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...
 
- Protected Member Functions inherited from GeomTSTTCommon
 GeomTSTTCommon (TSTTG::Geometry &geom) throw (TSTTB::Error )
 
virtual ~GeomTSTTCommon ()
 
void move_to (void *geom_handle, Vector3D &coord) const throw ( TSTTB::Error )
 Evaluate the closest point to the input position on the specified geometric entity and return the result in the passed position argument (move the passed position onto the geometry.) More...
 
void normal (void *geom_handle, Vector3D &coord) const throw ( TSTTB::Error )
 Given a geometric entity and a position, evaluate the normal on the geometric entity at the closest point on that entity to the input position, and pass back the result in the input coord vector. More...
 
void normal (void *geom_handle, Vector3D coords[], unsigned count) const throw ( TSTTB::Error )
 Given a geometric entity and a position, evaluate the normal on the geometric entity at the closest point on that entity to the input position, and pass back the result in the input coord vector. More...
 
void closest_and_normal (void *geom_handle, const Vector3D &position, Vector3D &closest, Vector3D &normal) const throw (TSTTB::Error)
 Given a geometric entity and a position, get point on the geometric entity closest to the input position, and the surface normal at that position. More...
 
- Protected Attributes inherited from GeomTSTTCommon
TSTTG::Shape geomIface
 TSTT geometry interface implementation to query. More...
 
sidl::array< void * > geomHandles
 Temporary storage for geometry entity handles. More...
 
sidl::array< double > positionsIn
 Temporary storate for input and output vectors. More...
 
sidl::array< double > positionsOut
 
sidl::array< double > normalsOut
 

Detailed Description

Definition at line 159 of file GeomTSTT.cpp.

Constructor & Destructor Documentation

GeomEntTSTT ( TSTTG::Geometry &  geom,
void *  geom_ent_handle 
)
throw (TSTTB::Error
)

Definition at line 339 of file GeomTSTT.cpp.

341  : GeomTSTTCommon( geom ),
342  geomEntHandle( geom_ent_handle )
343 {
344 }
void * geomEntHandle
A handle for the geometry entity to evaluate.
Definition: GeomTSTT.cpp:190
GeomTSTTCommon(TSTTG::Geometry &geom)
Definition: GeomTSTT.cpp:407
~GeomEntTSTT ( )
virtual

Definition at line 346 of file GeomTSTT.cpp.

346 {}

Member Function Documentation

void closest_point ( Mesh::EntityHandle  handle,
const Vector3D position,
Vector3D closest,
Vector3D normal,
MsqError err 
) const
virtual

evaluate closest point and normal

Given a position in space, return the closest position in the domain and the domain normal at that point.

Parameters
entity_handleEvaluate the subset of the domain contianing this entity
positionInput position for which to evaluate
closestClosest position in the domain.
normalDomain normal at the location of 'closest'

Implements MeshDomain.

Definition at line 388 of file GeomTSTT.cpp.

References GeomTSTTCommon::closest_and_normal(), GeomEntTSTT::geomEntHandle, MsqError::INTERNAL_ERROR, MSQ_SETERR, and Mesquite::process_tstt_error().

393 {
394  try {
395  closest_and_normal( geomEntHandle, position, closest, normal );
396  }
397  catch (TSTTB::Error& tstt_err ) {
399  }
400 }
void normal(void *geom_handle, Vector3D &coord) const
Given a geometric entity and a position, evaluate the normal on the geometric entity at the closest p...
Definition: GeomTSTT.cpp:437
void * geomEntHandle
A handle for the geometry entity to evaluate.
Definition: GeomTSTT.cpp:190
void closest_and_normal(void *geom_handle, const Vector3D &position, Vector3D &closest, Vector3D &normal) const
Given a geometric entity and a position, get point on the geometric entity closest to the input posit...
Definition: GeomTSTT.cpp:479
#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:

DomainHint hint ( ) const
virtual

Give a hint about the nature of the domain for better performance.

For implementations, if unsure, return NO_DOMAIN_HINT. SMOOTH_DOMAIN is a good default choice if the domain is a single geometric surface.

Implements MeshDomain.

Definition at line 348 of file GeomTSTT.cpp.

References Mesquite::SMOOTH_DOMAIN.

void normal_at ( Mesh::EntityHandle  entity_handle,
Vector3D coordinate 
) const
virtual

Returns the normal of the domain to which "entity_handle" is constrained.

For non-planar surfaces, the normal is calculated at the point on the domain that is closest to the passed in value of "coordinate". If the domain does not have a normal, or the normal cannot be determined, "coordinate" is set to (0,0,0). Otherwise, "coordinate" is set to the domain's normal at the appropriate point. In summary, the handle determines the domain. The coordinate determines the point of interest on that domain.

User should see also PatchData::get_domain_normal_at_vertex and PatchData::get_domain_normal_at_element .

Implements MeshDomain.

Definition at line 363 of file GeomTSTT.cpp.

References GeomEntTSTT::geomEntHandle, GeomTSTTCommon::normal(), and Mesquite::process_tstt_error().

365 {
366  try {
367  normal( geomEntHandle, coordinate );
368  }
369  catch (TSTTB::Error& tstt_err ) {
370  process_tstt_error(tstt_err);
371  }
372 }
void normal(void *geom_handle, Vector3D &coord) const
Given a geometric entity and a position, evaluate the normal on the geometric entity at the closest p...
Definition: GeomTSTT.cpp:437
void * geomEntHandle
A handle for the geometry entity to evaluate.
Definition: GeomTSTT.cpp:190
static msq_std::string process_tstt_error(TSTTB::Error &tstt_err)

Here is the call graph for this function:

void normal_at ( Mesh::EntityHandle  handle,
Vector3D  coordinates[],
unsigned  count,
MsqError err 
) const
virtual

evaluate surface normals

Returns normals for a domain.

Parameters
entity_handleThe domain evaluated is the one in which this mesh entity is constrained.
coordinatesAs input, a list of positions at which to evaluate the domain. As output, the resulting domain normals.
countThe length of the coordinates array.

Implements MeshDomain.

Definition at line 375 of file GeomTSTT.cpp.

References GeomEntTSTT::geomEntHandle, MsqError::INTERNAL_ERROR, MSQ_SETERR, GeomTSTTCommon::normal(), and Mesquite::process_tstt_error().

379 {
380  try {
381  normal( geomEntHandle, coordinates, count );
382  }
383  catch (TSTTB::Error& tstt_err ) {
385  }
386 }
void normal(void *geom_handle, Vector3D &coord) const
Given a geometric entity and a position, evaluate the normal on the geometric entity at the closest p...
Definition: GeomTSTT.cpp:437
void * geomEntHandle
A handle for the geometry entity to evaluate.
Definition: GeomTSTT.cpp:190
#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:

void snap_to ( Mesh::EntityHandle  entity_handle,
Vector3D coordinate 
) const
virtual

Modifies "coordinate" so that it lies on the domain to which "entity_handle" is constrained.

The handle determines the domain. The coordinate is the proposed new position on that domain.

Implements MeshDomain.

Definition at line 352 of file GeomTSTT.cpp.

References GeomEntTSTT::geomEntHandle, GeomTSTTCommon::move_to(), and Mesquite::process_tstt_error().

354 {
355  try {
356  move_to( geomEntHandle, coordinate );
357  }
358  catch (TSTTB::Error& tstt_err ) {
359  process_tstt_error(tstt_err);
360  }
361 }
void move_to(void *geom_handle, Vector3D &coord) const
Evaluate the closest point to the input position on the specified geometric entity and return the res...
Definition: GeomTSTT.cpp:418
void * geomEntHandle
A handle for the geometry entity to evaluate.
Definition: GeomTSTT.cpp:190
static msq_std::string process_tstt_error(TSTTB::Error &tstt_err)

Here is the call graph for this function:

Member Data Documentation

void* geomEntHandle
private

A handle for the geometry entity to evaluate.

Definition at line 190 of file GeomTSTT.cpp.

Referenced by GeomEntTSTT::closest_point(), GeomEntTSTT::normal_at(), and GeomEntTSTT::snap_to().


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