Jump to content

Get z at xy for NURBS curve?


Palle

Recommended Posts

  • 2 years later...

Hello everyone


I find this workaround interesting.

 

If the Nurbs curve is bent in XYZ then I would need to duplicate the Locus points along the path. correct?

 

@sbarrett

Is there some way to get the alignment of a Nurbs surface at point XY --> Get Z at XY "Get Degree"?

 

Have a nice day

 

 

Greetings from switzerland

 

Bildschirmfoto 2021-08-11 um 15.51.58.png

Link to comment
  • Vectorworks, Inc Employee

You can extract a point anywhere along a NURBS curve and get the Z value, but the point has to be relative to the length of NURBS curve, not the coordinate space. Get degree gives you the curvature of the NURBS curve at that point, I don't think it will get you the Z value.

Link to comment

Is it possible with "Get Degree" to get the curvature of a NURBS surface (not a curve) at a certain point, for example at the locus?

 

Alternatively, I would have to create objects and read their rotation with "Get 3D Orientation".

 

Thank you for your help.

Bildschirmfoto 2021-08-12 um 10.27.35.png

Link to comment
  • Vectorworks, Inc Employee

I don't think Get Degree get you any useful info. It is a degree of curvature that is specific to NURBS, so it will be a value of 1 if the point is a sharp angle, 2, or 3, etc. for less sharp angles - it is a value that is specific to NURBS geometry and not a real-world degree value. I believe what you are looking for is the Normal value of a Surface at a certain point. There are NURBS nodes that give you the Normal - the direction of the vector that is normal to the surface at that point. You can use this value to orient objects along a surface, for example. I can't remember the exact name of the node or nodes, but it should have the word Normal in either the name or the output value.

Link to comment

Hello everyone

 

After spending some time searching, I think I've found a workable solution. Everything is trial and error.

 

I can now align an object at a 90 ° angle on any surface.

 

The attached file works with a NURBS surface and a 3D object (example).

 

I found the special node "PtArrayStartEnd v002" in a network of @DomC. Thank you.

 

Is there a way to calculate the workflow and do without the graphic elements?

 

Many thanks for your help

Test.vwx

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...