MCPcopy Create free account
hub / github.com/Simple-Robotics/Simple / Plane

Class Plane

sandbox/viz_utils.py:346–370  ·  view source on GitHub ↗

A plane of the given width and height.

Source from the content-addressed store, hash-verified

344
345
346class Plane(mg.Geometry):
347 """A plane of the given width and height."""
348
349 def __init__(
350 self,
351 width: float,
352 height: float,
353 widthSegments: float = 1,
354 heightSegments: float = 1,
355 ):
356 super().__init__()
357 self.width = width
358 self.height = height
359 self.widthSegments = widthSegments
360 self.heightSegments = heightSegments
361
362 def lower(self, object_data: Any) -> MsgType:
363 return {
364 "uuid": self.uuid,
365 "type": "PlaneGeometry",
366 "width": self.width,
367 "height": self.height,
368 "widthSegments": self.widthSegments,
369 "heightSegments": self.heightSegments,
370 }
371
372
373def meshcat_material(r, g, b, a):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected