I'm interested in adding a new primitive to the library. Specifically, a deformed cylinder (with arbitrary oriented caps and possibly different radii; i think this is the convex hull of two oriented disks) as depicted in the figure below.

According to support_functions.cpp and geometric_shapes.h this requires to implement
- the support function
getShapeSupport
- the support point
getShapeSupportSet
- the class definition
DeformedCylinder : public ShapeBase
Open questions:
- what else has to be implemented?
- what is
cylinder->getSweptSphereRadius(); this is possibly important for a new primitive
If this can be done, I would like to proceed with the convex hull of two oriented rectangles.
I'm interested in adding a new primitive to the library. Specifically, a deformed cylinder (with arbitrary oriented caps and possibly different radii; i think this is the convex hull of two oriented disks) as depicted in the figure below.
According to support_functions.cpp and geometric_shapes.h this requires to implement
getShapeSupportgetShapeSupportSetDeformedCylinder : public ShapeBaseOpen questions:
cylinder->getSweptSphereRadius(); this is possibly important for a new primitiveIf this can be done, I would like to proceed with the convex hull of two oriented rectangles.