24#include "Topology/TriangleSet.h"
29 template<
typename TDataType>
35 typedef typename TDataType::Real
Real;
36 typedef typename TDataType::Coord
Coord;
40 std::string
caption()
override {
return "Capsule"; }
#define IMPLEMENT_TCLASS(name, T1)
DEF_INSTANCE_STATE(PolygonSet< TDataType >, PolygonSet, "")
NBoundingBox boundingBox() override
BasicShapeType getShapeType() override
DEF_VAR_OUT(TCapsule3D< Real >, Capsule, "")
DEF_INSTANCE_STATE(EdgeSet< TDataType >, CenterLine, "")
DEF_VAR(Coord, Center, 0, "Sphere center")
DEF_VAR(Real, Radius, 0.25, "Sphere radius")
DEF_VAR(Real, Height, 0.5, "Height")
std::string caption() override
Return the caption.
DECLARE_TCLASS(CapsuleModel, TDataType)
DEF_VAR(uint, HeightSegment, 8, "HeightSegment")
DEF_INSTANCE_STATE(TriangleSet< TDataType >, TriangleSet, "")
DEF_VAR(uint, Longitude, 20, "Longitude")
void resetStates() override
DEF_VAR(uint, Latitude, 20, "Latitude")
a class to store polygon whose vertex number is greater or equal than 3
This is an implementation of AdditiveCCD based on peridyno.