Jump to content
Mr. Bodo Hasubek

OffsetCurves perpendicular to a surface using setThicknessCurve

Recommended Posts

Hi all,

 

I am fighting a bit with offset curves. The plan is to create an offset curve that is perpendicular w.r.t. to a surface curve on a given surface.

 

So I set up a domain curve and set it as the ThicknessCurve in my offset curve.

Nothing useful happens, unless I enable "BothSides" and at least a "BlendingPositionLE".

 

However, I want neither: Neither an Offset on both sides, nor rounded edges.

Here's the program snipped:

 

// s   is the surfce to which the offset should be perpendicular,

// dc is a domaincurve created before

surfacecurve base(s, dc)

 

// Domaincurve for constant offset

line dcOC([0,1,0], [1,1,0])

 

offsetcurve offs(base)

offs.setDistance(NULL)              // Disable fixed offset

offs.setThicknessCurve(dcOC)

offs.setThicknessFactor(0.1)

offs.setBothSides(true)

offs.setBlendPositionLE(0.01)

 

Am I missing something?

 

Regards,

Bodo

Share this post


Link to post
Share on other sites

Hi Bodo,

 

yes, this functionality is right now just implemented for both sides true and used for impeller design. I have to ask our developers if it will be available in future releases for any offset curve type.

In the meantime, you have to create to create a feature, which creates points which are normal to the surface on a surfacecurve and interpolate them. As a start you can use the feature curve normal point.

 

best regards

 

Carsten

Share this post


Link to post
Share on other sites

Hi Bodo,

 

Thanks for this question - and sorry for not having it available right away. I think this is a good request, but also not absolutely trivial since approximation and accuracy assumptions are required. Is it ok for the time being to go for the solution that Carsten suggested?

 

Cheers

Joerg

Share this post


Link to post
Share on other sites

Do you really want to activate both sides? So I guess your thickness function goes down to zero at the transition, right?

Share this post


Link to post
Share on other sites

Hi Carsten and Jörg,

 

thanks for the replies.

 

I already wrote a feature that interpolates perpendicular points, no problem. Good enough for ship building ;-)

 

I'm actually using it to create stringers along my hull surfaces.  So in the ideal case the first and the last points should have the same x-coordinate as the original surface curve. However, that need's to be fixed manually for this special case, since this is an extra assumption.

 

Cheers,

Bodo

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...