Improve builtin hemisphere docs
PiperOrigin-RevId: 791271829 Change-Id: I391215b5388f4e9e2a17198dbcdbd0c605fda4b4
This commit is contained in:
committed by
Copybara-Service
parent
fde479736e
commit
784c7a419b
@@ -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);
|
||||
|
||||
@@ -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] = {
|
||||
|
||||
Reference in New Issue
Block a user