Jump to content

Cap top and buttom


jiweigang1
 Share

Recommended Posts

I didn't implement this because I thought this would be too many parameters to handle and because it's doable in another way :

 

well, when you extrude a 2D shape, you pass a path of Vector3 describing this shape, don't you ?

This path  could be used with a ribbon to build a 2D plain shape (just give this path and the right offset or null, it should work).

This plane ribbon will be the cap.

Then you have to rotate it and translate it to the first (and last) point of the curve used for extrusion.

 

I have to admit it's not straight forward  :(

 

Maybe these extra parameters should be added in extrusion... let me know people

Link to comment
Share on other sites

Another simpler way could be this one :

use the CustomExtruder

make a curve with the first and second point at the same position

make a scaleFunction with this condition : if i == 0 then return 0 else return scaleValue;

 

so the shape will be scaled to zero, reduced at a point for the first curve position, and then scaled to scaleValue ... but as your curve two first points are at the same position, it should cap your extruded shape

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.

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

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...