MPQC  2.3.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
sc::TriangulatedSurface Class Reference
Inheritance diagram for sc::TriangulatedSurface:
Inheritance graph
[legend]
Collaboration diagram for sc::TriangulatedSurface:
Collaboration graph
[legend]

Public Member Functions

 TriangulatedSurface (const Ref< KeyVal > &)
 
int verbose () const
 
void verbose (int v)
 
void set_integrator (const Ref< TriangleIntegrator > &)
 
void set_fast_integrator (const Ref< TriangleIntegrator > &)
 
void set_accurate_integrator (const Ref< TriangleIntegrator > &)
 
virtual Ref< TriangleIntegratorintegrator (int itri)
 
virtual Ref< TriangleIntegratorfast_integrator (int itri)
 
virtual Ref< TriangleIntegratoraccurate_integrator (int itri)
 
void add_triangle (const Ref< Vertex > &, const Ref< Vertex > &, const Ref< Vertex > &)
 
Ref< Edgefind_edge (const Ref< Vertex > &, const Ref< Vertex > &)
 
virtual void complete_surface ()
 
virtual void remove_short_edges (double cutoff_length=1.0e-6, const Ref< Volume > &vol=0, double isoval=0.0)
 
virtual void remove_slender_triangles (int remove_slender, double height_cutoff, int remove_small, double area_cutoff, const Ref< Volume > &vol=0, double isoval=0.0)
 
virtual void fix_orientation ()
 
virtual void clear ()
 
int nvertex () const
 
Ref< Vertexvertex (int i) const
 
int vertex_index (const Ref< Vertex > &o)
 
int nedge () const
 
Ref< Edgeedge (int i) const
 
int edge_index (const Ref< Edge > &o)
 
int ntriangle () const
 
Ref< Triangletriangle (int i) const
 
int triangle_index (const Ref< Triangle > &o)
 
int triangle_vertex (int i, int j) const
 
int triangle_edge (int i, int j) const
 
int edge_vertex (int i, int j) const
 
void compute_values (Ref< Volume > &)
 
virtual double flat_area ()
 
virtual double flat_volume ()
 
virtual double area ()
 
virtual double volume ()
 
virtual void print (std::ostream &o=ExEnv::out0()) const
 Print the object.
 
virtual void print_vertices_and_triangles (std::ostream &o=ExEnv::out0()) const
 
virtual void print_geomview_format (std::ostream &o=ExEnv::out0()) const
 
virtual void render (const Ref< Render > &render)
 
void topology_info (std::ostream &o=ExEnv::out0())
 
void topology_info (int nvertex, int nedge, int ntri, std::ostream &o=ExEnv::out0())
 
- Public Member Functions inherited from sc::DescribedClass
 DescribedClass (const DescribedClass &)
 
DescribedClassoperator= (const DescribedClass &)
 
ClassDescclass_desc () const throw ()
 This returns the unique pointer to the ClassDesc corresponding to the given type_info object. More...
 
const char * class_name () const
 Return the name of the object's exact type.
 
int class_version () const
 Return the version of the class.
 
- Public Member Functions inherited from sc::RefCount
int lock_ptr () const
 Lock this object.
 
int unlock_ptr () const
 Unlock this object.
 
void use_locks (bool inVal)
 start and stop using locks on this object
 
refcount_t nreference () const
 Return the reference count.
 
refcount_t reference ()
 Increment the reference count and return the new count.
 
refcount_t dereference ()
 Decrement the reference count and return the new count.
 
int managed () const
 
void unmanage ()
 Turn off the reference counting mechanism for this object. More...
 
int managed () const
 Return 1 if the object is managed. Otherwise return 0.
 
- Public Member Functions inherited from sc::Identity
Identifier identifier ()
 Return the Identifier for this argument. More...
 

Protected Member Functions

void clear_int_arrays ()
 
void complete_ref_arrays ()
 
void complete_int_arrays ()
 
void recompute_index_maps ()
 
void add_triangle (const Ref< Triangle > &)
 
void add_vertex (const Ref< Vertex > &)
 
void add_edge (const Ref< Edge > &)
 
virtual TrianglenewTriangle (const Ref< Edge > &, const Ref< Edge > &, const Ref< Edge > &, int orientation) const
 
virtual EdgenewEdge (const Ref< Vertex > &, const Ref< Vertex > &) const
 
- Protected Member Functions inherited from sc::RefCount
 RefCount (const RefCount &)
 
RefCountoperator= (const RefCount &)
 

Protected Attributes

int _verbose
 
int _debug
 
int _completed_surface
 
std::set< Ref< Vertex > > _vertices
 
std::set< Ref< Edge > > _edges
 
std::set< Ref< Triangle > > _triangles
 
std::map< Ref< Vertex >, int > _vertex_to_index
 
std::map< Ref< Edge >, int > _edge_to_index
 
std::map< Ref< Triangle >, int > _triangle_to_index
 
std::vector< Ref< Vertex > > _index_to_vertex
 
std::vector< Ref< Edge > > _index_to_edge
 
std::vector< Ref< Triangle > > _index_to_triangle
 
int ** _triangle_vertex
 
int ** _triangle_edge
 
int ** _edge_vertex
 
int _have_values
 
std::vector< double > _values
 
Ref< TriangleIntegrator_integrator
 
Ref< TriangleIntegrator_fast_integrator
 
Ref< TriangleIntegrator_accurate_integrator
 
std::map< Ref< Vertex >, std::set< Ref< Edge > > > _tmp_edges
 

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

Generated at Sun Jan 26 2020 23:33:10 for MPQC 2.3.1 using the documentation package Doxygen 1.8.16.