Add mjs_makeMesh to create a builtin mesh.
PiperOrigin-RevId: 788538127 Change-Id: I999733399a1a0da07b0f915f34d31364ab8b3b52
This commit is contained in:
committed by
Copybara-Service
parent
46dc67b7eb
commit
89f4789085
@@ -1050,6 +1050,11 @@ class mjCMesh: public mjCMesh_, private mjsMesh {
|
||||
void PointToLocal(void);
|
||||
void NameSpace(const mjCModel* m);
|
||||
|
||||
// make a mesh of a predefined shape
|
||||
void MakeWedge(int resolution[2], double fov[2], double gamma);
|
||||
void MakeRect(int resolution[2]);
|
||||
void MakePrism(int nedge);
|
||||
|
||||
// accessors
|
||||
const mjsPlugin& Plugin() const { return plugin; }
|
||||
const std::string& ContentType() const { return content_type_; }
|
||||
|
||||
Reference in New Issue
Block a user