I am trying to put reinforcement along a polyhedron surface line which is a vector3D. I could not convert it to vector2D and could not find a method that uses vector3D directly. How can I achieve this?
Support Forum
- Forum
- CAD Parametric Modelling
- PythonParts
[Frage] Reinforcement along surface [Gelöst]
12.06.2024 - 08:23
Uhr
Lösung anzeigen Lösung verbergen
12.06.2024 - 09:19
Uhr
*
Hi,
you can create a new 2D vector out of a 3D vector. In the V2024 of the API, the last constructor of Vector2D accepts a Vector3D as input. So you can make a 2D copy of your 3D vector like this:
my_2d_vec = Allplangeometry.Vector2D(my_3d_vec)
In 2025 version Vector3D has a To2D property.
Hope that helps.
Best,
Bart
12.06.2024 - 09:19
Uhr
*
[Lösung]
Hi,
you can create a new 2D vector out of a 3D vector. In the V2024 of the API, the last constructor of Vector2D accepts a Vector3D as input. So you can make a 2D copy of your 3D vector like this:
my_2d_vec = Allplangeometry.Vector2D(my_3d_vec)
In 2025 version Vector3D has a To2D property.
Hope that helps.
Best,
Bart