20#include "Topology/TriangleSet.h"
25 template<
typename TDataType>
31 typedef typename TDataType::Real
Real;
32 typedef typename TDataType::Coord
Coord;
36 std::string
caption()
override {
return "Cone"; }
41 DEF_VAR(
unsigned, Columns, 24,
"Cone Columns");
45 DEF_VAR(
unsigned, EndSegment, 3,
"Cone EndSegment");
#define IMPLEMENT_TCLASS(name, T1)
void resetStates() override
DEF_VAR(unsigned, Row, 4, "Cone Row")
DEF_VAR(Real, Height, 0.9, "Cone Height")
DEF_VAR(unsigned, Columns, 24, "Cone Columns")
DEF_VAR(unsigned, EndSegment, 3, "Cone EndSegment")
DECLARE_TCLASS(ConeModel, TDataType)
DEF_INSTANCE_STATE(TriangleSet< TDataType >, TriangleSet, "")
BasicShapeType getShapeType() override
DEF_VAR(Real, Radius, 0.6, "Cone radius")
DEF_INSTANCE_STATE(PolygonSet< TDataType >, PolygonSet, "")
std::string caption() override
Return the caption.
NBoundingBox boundingBox() override
DEF_VAR_OUT(TCone3D< Real >, Cone, "")
a class to store polygon whose vertex number is greater or equal than 3
This is an implementation of AdditiveCCD based on peridyno.