16 #ifndef _A_BLOCK_2D4_H_
17 #define _A_BLOCK_2D4_H_
29 static const std::string
help();
35 virtual std::string
name()
const {
return "a_block_2d4";}
43 a_point
v3d(
const int i)
const;
45 inline int nvt()
const {
return 8;}
47 inline int nit()
const {
return 6;}
51 virtual a_point
cl()
const;
57 virtual void read(std::istream &
i);
58 virtual void write(std::ostream &o)
const;
60 virtual void writetri(std::ostream &o)
const;
61 virtual void writeb(std::ostream &o)
const;
62 virtual void writeg(std::ostream &o)
const;
64 void writefaces(std::ostream &o,
const int base)
const;
a_block_2d4 * cb_2d4(a_block *b)
a_point v3d(const int i) const
get vertex (world coordinate, 3D: 8 points: order v0-n, v0+n, v1+n, v1-n
int nit() const
get number of faces (here 6, from 4 which are defined)
virtual void writeg(std::ostream &o) const
write a brlcad description of the block
double thickness() const
get block thickness
static const std::string help()
get information about the class
double V() const
volume of the block
virtual void writetri(std::ostream &o) const
write a triangle face representation of the block
a_point normall() const
normal to the definition plan of the block (local coordinates)
virtual void write(std::ostream &o) const
void thickness(const double thickness)
set block thickness
virtual a_point cl() const
centre of gravity of the face (local coordinate system)
virtual void writeb(std::ostream &o) const
write a blender description of the block
double * thickness_p() const
get block thickness pointer
void trianglecloud(a_trianglecloud &) const
virtual void deepcopy(const a_block_2d4 &)
copy the block. create new edges
void writefaces(std::ostream &o, const int base) const
write a triangle file description of the block
int nvt() const
get number of vertices (here 8, from 4 which are defined)
virtual void read(std::istream &i)
input/output
virtual void copy(const a_block_2d4 &)
copy the block. do not create new edges
virtual std::string name() const
get type of the pointer
a_point normal() const
normal to the definition plan of the block (world coordinates)
a_face * i(const int i)
get pointer to face