Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Flattensurf.dll handle surface with holes or elipse through?


PeterDnz
 Share

Recommended Posts

It is a multi-step process, but yes, it can be done. First you need to make sure your spline creation type is set to 'parametric'. If your splines are 'NURBS' splines, you will have to convert them into parametric (create-spline-curves spline). Just rechain them and it will create a new parametric spline.

 

Once you have parametric splines, use Create-Curve-Surface Curve. This will turn the parametric spline into a surface curve. Once you have surface curves, you can use the Map.dll Chook to map the curves from your curves surface to your flat surface. You'll also need to map your trimmed edge curves onto the flattened surface too.

 

Check the curves from the top view and be sure they look right. If they look weird, you probably need to flip the U/V direction.

 

Once the curves have been mapped to the new surface, Use the Cons2spline.dll chook to turn the surface curve into a parametric spline.

 

It's a process for sure, but it can be done.

 

Then you can trim the flattened surface to the new mapped splines...

 

HTH,

Link to comment
Share on other sites

Hey, good tip Rob, thanks.

 

I also set my default spline creation type to Parametric in the Config file, so any file I import usually has only parametric to begin with. There is also a "convert to NURBS" function in the edit menu, so in the few cases where I need to move a spline's endpoint, I convert it to NURBS to do that. I like the VDA trick though, I'll have to try that.

Link to comment
Share on other sites

Are you sure you have "surface curves" on your parent surface? If all you have is splines, they will not be mapped. Only surface curves are mapped. Map.dll will prompt you to select a surface with surface curves on it, then select the suface to map them to.

 

I've had problems mapping curves if they are right at the edge of a surface. Try "untrimming" your surface, the creating the 'surface curves' from your splines, then mapping.

 

I do this on at least a weekly basis...

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.

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.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...