Index

C++ Code Documentation

geom::surface0::SurfaceBase

Derived from: geom::surface0::GeomObject , geom::surface0::BoundingBox , geom::surface0::LineSet

Children: geom::surface0::Boundary

File: GEOM/geom/surface0/SurfaceBase.H

Geometric Surface

public:
  • SurfaceBase();
    constructor
  • SurfaceBase( SurfaceBase const & );
    copy constructor
  • virtual ~SurfaceBase();
    destructor
  • SurfaceBase &operator=( SurfaceBase const & );
    assignment operator
  • virtual uint dimension() const;
  • virtual uint vertex_count() const;
    returns the total number of vertices in the geometry object
  • Vertex const &vertex( uint i ) const;
  • template <class A> void vertex( A &v, uint i ) const;
  • void vertex( Vertex4 &v, uint i, Transform const &t, ProjectionMode mode ) const;
  • virtual uint face_count() const;
    returns the total number of faces in the geometry object
  • virtual uint face_count(uint n) const;
    returns the number of vertices of the 'n'th face
  • virtual uint face_vertex(uint f, uint v) const;
    returns index of the v'th vertex of face f
  • SpaceForm const &spaceform() const;
  • Box const &box() const;
  • base::vector<Vertex> const &vertex_data() const;
  • base::vector<base::vector<uint> > const &face_data() const;
  • template <class A> void import( base::vector<A> const &vertex, base::vector<base::vector<uint> > const &face, SpaceForm const &spaceform );
  • void import( base::vector<Vertex> const &vertex, base::vector<base::vector<uint> > const &face, SpaceForm const &spaceform );
  • template <class A> void import( base::vector<base::vector<A> > const &vertex, SpaceForm const &spaceform );
  • void import( base::vector<base::vector<Vertex> > const &vertex, SpaceForm const &spaceform );
  • void reverse_orientation();
  • virtual void clear();
  • enum Type;
  • Type type() const;
  • uint i_count() const;
  • uint j_count() const;
  • uint i_begin() const;
  • uint i_step() const;
  • uint j_begin() const;
  • uint j_step() const;
  • void reset_clip();
  • void set_clip( uint i_begin, uint i_step, uint j_begin, uint j_step );
  • void get_clip( uint &i_begin, uint &i_step, uint &j_begin, uint &j_step ) const;
  • void compute_face_center() const;
  • Vertex3 const &face_center(uint i) const;
  • virtual void apply( Transformer const & );
  • void transform( geom::Transform const &a );
  • void translate( math::VectorX<Real,3U> const &a );
  • void reflect( math::VectorX<Real,4U> const &a );
protected:
  • void compute_bounding_box();
  • virtual void replace_vertex( uint p, Vertex2 const &v );
  • Vertex &vertex( uint i );
  • uint vertex_index( uint n ) const;
  • uint face_index( uint n ) const;
  • virtual void spaceform( SpaceForm s );
  • base::vector<Vertex> _vertex;
    positions in R^3
  • base::vector<base::vector<uint> > _face;
    base::vector of face indices
  • uint index( uint i, uint j ) const;
private:
  • void insert_grid_boundary();
  • Type _type;
  • SpaceForm _spaceform;
  • mutable BoundingBox _box;
  • uint _i_count, _j_count;
  • uint _i_begin, _i_step;
  • uint _j_begin, _j_step;
  • mutable base::vector<Vertex3> _face_center;


geom::surface0::SurfaceBase GANG