is_projection_inside#
- static GeometryOperators.is_projection_inside(a1: list, a2: list, b1: list, b2: list) bool#
Project a segment onto another segment and check if the projected segment is inside it.
- Parameters:
- a1
List List of
[x, y, z]coordinates for the first point of the projected segment.- a2
List List of
[x, y, z]coordinates for the second point of the projected segment.- b1
List List of
[x, y, z]coordinates for the first point of the other segment.- b2
List List of
[x, y, z]coordinates for the second point of the other segment.
- a1
- Returns:
- bool
Truewhen the projected segment is inside the other segment,Falseotherwise.
Examples
>>> from ansys.aedt.core.modeler.geometry_operators import GeometryOperators >>> obj = GeometryOperators() >>> obj.is_projection_inside(a1=["Box1"], a2=["Box1"], b1=["Box1"], b2=["Box1"])