93 double ix,
double iy,
double iz,
94 double iw,
double il,
double iratio_top_bottom,
double ih,
95 double ipitch,
double iyaw,
double iroll
102 const std::vector<kjb::Vector> & p
157 virtual void write(std::ostream& out)
const
164 double ix,
double iy,
double iz,
165 double iw,
double il,
double iratio_top_bottom,
double ih
172 virtual unsigned int adjacent_face(
unsigned int f,
unsigned int e)
const
189 std::vector<int> & base_edge_indexes,
190 std::vector<int> & vertical_edge_indexes,
191 std::vector<int> & top_edge_indexes,
226 void create_adjacency_matrix();
unsigned int nv
number of vertices for the top(bottom) surface.
Definition: gr_parametric_frustum.h:203
frustum: a polyhedron of which each torso face is a trapezoid and the top and bottom surfaces are pol...
Definition: gr_parametric_frustum.h:82
const kjb::Vector & get_center() const
Returns the center vector for this frustum.
Definition: gr_parametric_frustum.cpp:393
void set_points(unsigned int inv, double ix, double iy, double iz, double iw, double il, double iratio_top_bottom, double ih)
reset the points of this Frustum
Definition: gr_parametric_frustum.cpp:572
Object thrown when an index argument exceeds the size of a container.
Definition: l_exception.h:399
virtual void write(std::ostream &out) const
Writes this frustum to an output stream.
Definition: gr_parametric_frustum.cpp:476
This class implements matrices, in the linear-algebra sense, restricted to integer-valued elements...
Definition: l_int_matrix.h:71
virtual Frustum * clone() const
Clones this frustum.
Definition: gr_parametric_frustum.cpp:366
kjb::Vector center
Center of this frustum.
Definition: gr_parametric_frustum.h:213
This class implements vectors, in the linear-algebra sense, with real-valued elements.
Definition: m_vector.h:87
Abstract class of connected polygons (faces) forming a mesh.
virtual Frustum & operator=(const Frustum &p)
Copies a frustum into this one.
Definition: gr_parametric_frustum.cpp:353
Frustum(unsigned int inv, double ix, double iy, double iz, double iw, double il, double iratio_top_bottom, double ih, double ipitch, double iyaw, double iroll)
Constructs a frustum.
Definition: gr_parametric_frustum.cpp:127
virtual void add_face(const Polygon &face)
Adds a face to this Frustum -> Not implemented here, it will throw an exception, because the use of t...
Definition: gr_parametric_frustum.cpp:733
const kjb::Vector & get_point(size_t i) const
Returns an indexed point defining this Frustum.
Definition: gr_parametric_frustum.cpp:377
std::vector< kjb::Vector > points
Points defining this Frustum.
Definition: gr_parametric_frustum.h:206
static int get_edge_indexes(std::vector< int > &base_edge_indexes, std::vector< int > &vertical_edge_indexes, std::vector< int > &top_edge_indexes, int num_facets)
Definition: gr_parametric_frustum.h:188
virtual void read(std::istream &in)
Reads this frustum from an input stream.
Definition: gr_parametric_frustum.cpp:405
Definition: gr_polygon.h:36
Abstract class of connected polygons (faces) forming a mesh. We assume that each edge is shared betwe...
Definition: gr_polymesh.h:89
virtual unsigned int adjacent_face(unsigned int f, unsigned int e) const
returns the index of the face adjacent to face f along edge e This is an efficient implementation to ...
Definition: gr_parametric_frustum.cpp:690
Exception often thrown when wrapped C functions return error codes.
Definition: l_exception.h:262
void draw_orientation_map() const
static int get_num_edges(int num_facets)
Definition: gr_parametric_frustum.h:181
Object thrown when an argument to a function is not acceptable.
Definition: l_exception.h:377
virtual ~Frustum()
Deletes this frustum.
Definition: gr_parametric_frustum.h:122
get the indices of edges in each direction for i
Definition: APPgetLargeConnectedEdges.m:48
virtual void transform(const kjb::Matrix &M)
Transforms this frustum.
Definition: gr_parametric_frustum.cpp:540
Object thrown when input or output fails.
Definition: l_exception.h:496
This class implements matrices, in the linear-algebra sense, with real-valued elements.
Definition: m_matrix.h:94