Geometry constructor

Geometry({
  1. Pose? center,
  2. Sphere? sphere,
  3. RectangularPrism? box,
  4. String? label,
  5. Capsule? capsule,
})

Implementation

factory Geometry({
  Pose? center,
  Sphere? sphere,
  RectangularPrism? box,
  $core.String? label,
  Capsule? capsule,
}) {
  final $result = create();
  if (center != null) {
    $result.center = center;
  }
  if (sphere != null) {
    $result.sphere = sphere;
  }
  if (box != null) {
    $result.box = box;
  }
  if (label != null) {
    $result.label = label;
  }
  if (capsule != null) {
    $result.capsule = capsule;
  }
  return $result;
}