A plane of the given width and height.
| 344 | |
| 345 | |
| 346 | class 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 | |
| 373 | def meshcat_material(r, g, b, a): |
nothing calls this directly
no outgoing calls
no test coverage detected