Support Forum

[Frage] Reinforcement along surface [Gelöst]

Schlagworte:
  • PythonParts
  • Reinforcement
  • Polyhedron

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?

Lösung anzeigen Lösung verbergen

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

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