(self, arg: Shape)
| 191 | raise ValueError(f"Exception {e} occured in the parameter conversion") |
| 192 | |
| 193 | def _getAxis(self, arg: Shape) -> gp_Dir: |
| 194 | |
| 195 | if isinstance(arg, Face): |
| 196 | rv = arg.normalAt() |
| 197 | elif isinstance(arg, Edge) and arg.geomType() != "CIRCLE": |
| 198 | rv = arg.tangentAt() |
| 199 | elif isinstance(arg, Edge) and arg.geomType() == "CIRCLE": |
| 200 | rv = arg.normal() |
| 201 | else: |
| 202 | raise ValueError(f"Cannot construct Axis for {arg}") |
| 203 | |
| 204 | return rv.toDir() |
| 205 | |
| 206 | def _getPln(self, arg: Shape) -> gp_Pln: |
| 207 |