Institut de Robòtica i Informàtica Industrial
KRD Group

The CuikSuite Project

Tcpolyhedron Struct Reference

A convex polyhedron. More...

#include <cpolyhedron.h>

Collaboration diagram for Tcpolyhedron:

Data Fields

unsigned int type
Tcolor color
unsigned int obj3d
unsigned int nv
unsigned int nf
unsigned int ne
double ** v
unsigned int * nvf
unsigned int ** fv
double rad
double center [3]
double p1 [3]
double p2 [3]
double maxCoord

Detailed Description

Convex polyhedron implementation.

Note that we can have cylinders, spheres and general polyhedrons (geomview non-colored OFFs) However, the shapes are only used for display purposes since internally all objects are represented/approximated as polyhedrons (i.e., OFFs). This is specially relevant for collision detection since a polytope approximating the cylinder and the sphere is used. The granularity of this approximation adjusted in the .world files.

In principle, geomview OFFs can define non-convex objects. We will display these objects as non-convex, but in the obstacle detection system a convex hull of the objects is considered. This is why we call this type convex polyhedron (cpolyhedron), because, functionally, they are treated as convex.

See also:
cpolyhedron.h, cpolyhedron.c.

Definition at line 102 of file cpolyhedron.h.


Field Documentation

unsigned int Tcpolyhedron::obj3d

Identifier of the body. Used when plotting (see Tplot3d).

Definition at line 107 of file cpolyhedron.h.

Referenced by CopyCPolyhedron(), InitCPolyhedronFromFile(), MoveCPolyhedron(), NewCylinder(), NewSphere(), and PlotCPolyhedron().

unsigned int Tcpolyhedron::ne

Number of edges (not used).

Definition at line 111 of file cpolyhedron.h.

Referenced by CopyCPolyhedron(), PlotCPolyhedron(), and ReadOFF().

unsigned int* Tcpolyhedron::nvf

Number of vertices per face.

Definition at line 113 of file cpolyhedron.h.

Referenced by CopyCPolyhedron(), DeleteCPolyhedron(), GenerateCylinderOFF(), GenerateSphereOFF(), PlotCPolyhedron(), ReadOFF(), and SaveCPolyhedron().

Maximum of the X,Y,Z coordinates used to represent the convex polyhedron. This provides a conservative bounding box for this object.

Definition at line 123 of file cpolyhedron.h.

Referenced by CopyCPolyhedron(), GenerateCylinderOFF(), GenerateSphereOFF(), GetCPolyhedronMaxCoordinate(), ReadOFF(), and TransformCPolyhedron().


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