(self, arg: Shape)
| 232 | return center.toPnt() |
| 233 | |
| 234 | def _getLin(self, arg: Shape) -> gp_Lin: |
| 235 | |
| 236 | if isinstance(arg, (Edge, Wire)): |
| 237 | center = arg.Center() |
| 238 | tangent = arg.tangentAt() |
| 239 | else: |
| 240 | raise ValueError(f"Cannot construct a plane for {arg}.") |
| 241 | |
| 242 | return gp_Lin(center.toPnt(), tangent.toDir()) |
| 243 | |
| 244 | def toPODs(self) -> Tuple[Constraint, ...]: |
| 245 | """ |