Grzegorz Krzemien Posted October 14, 2019 Share Posted October 14, 2019 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 Quote Link to comment
AlanW Posted October 26, 2019 Share Posted October 26, 2019 (edited) @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 170312_01_v2020_v2018.vwx Edited October 26, 2019 by Alan Woodwell 1 Quote Link to comment
AlanW Posted October 26, 2019 Share Posted October 26, 2019 (edited) @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 Edited October 26, 2019 by Alan Woodwell Quote Link to comment
AlanW Posted October 26, 2019 Share Posted October 26, 2019 (edited) @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 Edited October 26, 2019 by Alan Woodwell Quote Link to comment
Grzegorz Krzemien Posted October 26, 2019 Author Share Posted October 26, 2019 @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. Quote Link to comment
AlanW Posted October 26, 2019 Share Posted October 26, 2019 (edited) @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. ShapesOnCurve_002v2018.vwx Edited October 26, 2019 by Alan Woodwell Quote Link to comment
Grzegorz Krzemien Posted October 26, 2019 Author Share Posted October 26, 2019 @Alan Woodwell I need to take a closer look on how it works. This looks promising. Quote Link to comment
AlanW Posted October 26, 2019 Share Posted October 26, 2019 @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 Quote Link to comment
Grzegorz Krzemien Posted October 28, 2019 Author Share Posted October 28, 2019 @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. 🙂 Quote Link to comment
AlanW Posted October 28, 2019 Share Posted October 28, 2019 @GRZEGORZ Glad we could sort it, and looking at the way you did it also gives me more ways to do it. 🙂 Alan Quote Link to comment
Recommended Posts
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.