File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -589,7 +589,7 @@ class MeshcatShapeReifier : public ShapeReifier {
589
589
auto geometry = std::make_unique<internal::CapsuleGeometryData>();
590
590
geometry->uuid = uuid_generator_.GenerateRandom ();
591
591
geometry->radius = capsule.radius ();
592
- geometry->length = capsule.length ();
592
+ geometry->height = capsule.length ();
593
593
lumped.geometry = std::move (geometry);
594
594
595
595
// Meshcat cylinders have their long axis in y.
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ struct CapsuleGeometryData : public GeometryData {
211
211
// For a complete description of these parameters see:
212
212
// https://threejs.org/docs/#api/en/geometries/CapsuleGeometry
213
213
double radius{};
214
- double length {};
214
+ double height {};
215
215
double radialSegments{20 }; // Number of segmented faces around the
216
216
// circumference of the capsule.
217
217
double capSegments{10 }; // Number of curve segments used to build
@@ -224,7 +224,7 @@ struct CapsuleGeometryData : public GeometryData {
224
224
o.pack (" CapsuleGeometry" );
225
225
PACK_MAP_VAR (o, uuid);
226
226
PACK_MAP_VAR (o, radius);
227
- PACK_MAP_VAR (o, length );
227
+ PACK_MAP_VAR (o, height );
228
228
PACK_MAP_VAR (o, radialSegments);
229
229
PACK_MAP_VAR (o, capSegments);
230
230
}
You can’t perform that action at this time.
0 commit comments