Build 'Convex' shape in memory from vertices #22386
Labels
component: geometry general
Geometry infrastructure or topics that defy categorization into other geometry components
type: feature request
Is your feature request related to a problem? Please describe.
There is no straightforward way to create a general 'Convex' shape given vertices.This means that to visualize shapes generated during runtime, one needs to generate a mesh file in memory (
MemoryFile(formatted_string_containing_vertices, ".OBJ", filename_hint)
) then parse that file into a Convex object. This is inconvenient.Describe the solution you'd like
As suggested by @jwnimmer-tri, a
Convex::Convex(const Matrix3d& vertices, const std::string& filename_hint, double scale = 1.0)
constructor would be great. This would also help implement a method to convert VPolytopes to Convex shapes to register VPolytopes as geometries.The text was updated successfully, but these errors were encountered: