Improve builtin hemisphere docs

PiperOrigin-RevId: 791271829
Change-Id: I391215b5388f4e9e2a17198dbcdbd0c605fda4b4
This commit is contained in:
Yuval Tassa
2025-08-05 10:24:45 -07:00
committed by Copybara-Service
parent fde479736e
commit 784c7a419b
5 changed files with 12 additions and 11 deletions
+2 -2
View File
@@ -513,11 +513,11 @@ int mjs_makeMesh(mjsMesh* mesh, mjtMeshBuiltin builtin, double* params, int npar
}
int subdiv = static_cast<int>(params[0]);
if (subdiv < 0) {
m->SetError(mjCError(0, "Hemisphere subdivision cannot be negative"));
m->SetError(mjCError(0, "Hemisphere resolution cannot be negative"));
return -1;
}
if (subdiv > 10) {
m->SetError(mjCError(0, "Hemisphere subdivision cannot be greater than 10"));
m->SetError(mjCError(0, "Hemisphere resolution cannot be greater than 10"));
return -1;
}
meshC->MakeHemisphere(subdiv, /*make_faces*/ true, /*make_cap*/ true);
+1 -1
View File
@@ -2066,7 +2066,7 @@ void mjCMesh::CopyGraph() {
// make a mesh of a hemisphere
// make a mesh of a hemisphere (quad projected)
void mjCMesh::MakeHemisphere(int res, bool make_faces, bool make_cap) {
constexpr double kNorthPole[3] = {0, 0, 1};
constexpr double kEquator[4][3] = {