Jump to content
GRZEGORZ

Perpendicularly placed shapes on curve

Recommended Posts

Hello there!

 

Tried to create a network that places shapes on input Curve. Shapes have to be perpendicular (placed along curve's normal vector). But somehow I can't see any result. Debugging shows, that last node (Rotate) generate geometry, but it does not show up on screen. Any ideas?

 

Offtopic

Is there any progress in finding normal vector to 3D curve/NURBS curve?

 

 

ShapesOnCurve.vwx

Share this post


Link to post

@GRZEGORZ Hi there is a node in this network courtesy of DomC that does what you want, I think.

in your network take away the last delete and you will see the items on the line.

Will look at later to get them to follow line perpendicular.

 

HTH

170312_01_v2020.vwx

Capture.JPG

170312_01_v2020_v2018.vwx

Edited by Alan Woodwell
  • Like 1

Share this post


Link to post

@GRZEGORZ Hi so i wasn't able to get your network to work but did with the assist of Some of DomC's nodes. The nodes you use says that thy return an angle tangent to the poly but the output is strange, not an angle but maybe a tan rater than a tan angle. Will continue to look.

Always like a challenge.

 

The output from the node doesnot appear to give an angle but 3point vector so it cannot be used to rotate by angle.

Maybe someone else can resolve this brain teaser.

 

ShapesOnCurve_v2020_v2018.vwx

Capture.JPG

Capture.JPG

Edited by Alan Woodwell

Share this post


Link to post

@GRZEGORZWohoooo got it.See attached and its simpler than you think. Change the count on the range to get more items. 

 

🙂 good luck with more and post if you have any issues.

Alan

 

 

170312_01_v2020_v2018.vwx

Capture.JPG

Edited by Alan Woodwell

Share this post


Link to post

@Alan Woodwell, thank you so much for your time.

 

Unfortunately, connecting vTan in "Get Point On Poly" to vRot in "RectangleXXXX" does not work. I mean they are rotated in the right direction, but at the same time moved from the curve (see picture).

I don't understand why this happens, so I tried to use rotate node to make same effect in two steps. I will search for kind of translator between 3DVector and angle, maybe this will help. 

example1.png

Share this post


Link to post

@GRZEGORZHi, had a look at my other network and adjusting the setting i can get the object to sit on the line.

 

In your network it appears to be an issue with the width of the rectangle. If you make it 0.1 wide it will get closer, make it wider it gets further away.

 

Capture.JPG

Capture.JPG

ShapesOnCurve_002v2018.vwx

Capture.JPG

Edited by Alan Woodwell

Share this post


Link to post

@GRZEGORZ Hi again so i looked at the rectangle node and adjusted it a bit and it worked perfectly and objects sat on the line. I then got the latest node which is an upgraded one of the one you are using and substituted it and all works fine. see attached.

 

I used a Locus with the original network rather than the rectangle and it sat perfectly on the line so i deduced that it must be the rectangle node so i change it then used the current node. 

Hope this solved the issue with the original network.

 

Regards

Alan

ShapesOnCurve_002_v2018.vwx

Capture.JPG

Share this post


Link to post

@Alan Woodwell

Thanks for your help 🙂 it's all working now.

The solution was pretty easy, can't believe I missed it earlier.

The problem was, as you noticed before, that vTan is not vAng. I thought that every vector is considered as vector. Rotate node's description says vAng - "It could be a 2D/3D rotation vector...", but I didn't realize there are different kind of vectors in Marionette. 🙂

ShapesOnCurve.png

Share this post


Link to post

@GRZEGORZ Glad we could sort it, and looking at the way you did it also gives me more ways to do it.

🙂 Alan

Share this post


Link to post

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.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...