Jump to content

Distance between point on plane and curve into an attribute?


Recommended Posts

I am trying to accomplish something similar to this tutorial: https://www.youtube.com/watch?v=ejWtQnZJHdk

I have a grid which I am extruding with polyextrude, but I want the extrusion of the grid to be controlled by a curve.

So then I can draw a curve over the top of the grid and the extrusion will not get past where the curve is. 

This is so that I can essentially 'carve' a line through the extruded cubes.

I have this partially working, which I did so by copy stamping a sphere along the curve and then using the transfer attributes node. I attached an image of the scene I have to better explain.

The problem with this though is that the resulting value of the attribute is arbitrary it seems. It does not represent the actual distance of the surface from the curve. So the extrusions do not end up touching the curve perfectly.

How do I make an attribute that represents the exact distance between a given point on the surface and the nearest point on the curve?



Edited by rygo6
Link to comment
Share on other sites

ok....here...using @dist...(this is from ray, do not confuse with dist from polyextrude)

The 'dist' from poly extrude is a multiplier to the @dist from ray.

You can change the ray method to Min Distance to get an interesting different look.

somewhat related to this thread:




Edited by Noobini
  • Like 1
Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...