Skip to main content
Question

Constructing 3D arcs with 3D points

  • July 3, 2019
  • 1 reply
  • 58 views

Forum|alt.badge.img

Hello,

I'm struggling with making a certain module: I have 2 3D points with a certain z-value and i have a 2D arc "connecting" them.

I am now trying to build a module which would make a 3D arc or a generalized 3D polyline using the z values of the 2 points given.

At this point I'm just doing this manually but an automatisation of this process would certainly increase my workflow.

Can someone just point me in the right direction so I could solve this.

Thanks,

 

EDIT: The two 3D points do indeed have a different value in Z.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

mark2atsafe
Safer
Forum|alt.badge.img+56
  • Safer
  • 2554 replies
  • July 3, 2019

It depends on if your 3D points have the same z value. If so, use the Offsetter transformer to just raise the z value of the arc.

If the 3D points have a different z value... that's more complex. There's a 3DArcReplacer transformer, but I don't really think that helps. It looks to me like it just creates an arc-by-centre with a fixed z.

This seems really difficult. I can only think of two possible methods.

1: Figure out the angle/bearing between the two points. Stroke the arc and rotate it (with the 3DRotator on the x or y axis) using the calculated angle. That would give you a 3D line approximating the arc.

2: Stroke the arc and use the SurfaceDraper to align it to the 3D points.

I think the first method would produce a better result, but I'm not totally sure how to calculate the rotation. The second method is simpler but the results won't be as good.