Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

interpolate spline from mesh

interpolate spline from mesh

mark_aldred
Advocate Advocate
1,505 Views
8 Replies
Message 1 of 9

interpolate spline from mesh

mark_aldred
Advocate
Advocate

Imagine you have a mesh that used to be a spline but had a circular Sweep applied then was collapsed. Anybody know any tricks to get the spline back? I guess I need to put a vertice at the centre point of each loop? Any scripts or the like to help?

 

Thanks

Mark

 

0 Likes
1,506 Views
8 Replies
Replies (8)
Message 2 of 9

miledrizk
Advisor
Advisor

Hi,

 

In the Editable Poly, go to the Edge subobject level and select the edges that make up the old

Spline shape. You can try double-clicking one edge to select the whole loop, you can also click the

Loop button in the selection rollout. If it's a ring of edges you want then click the Ring button.

Now, in the Edit Edges rollout click the Create Shape From Selection button, choose the option

Linear, give it a name(optional) and click OK. Now you have a spline shape as a separate object.

------------------------------------------------------
miledrizk@gmail.com
3DS Max 2025, V-Ray 7
3DS Max user since 2003 (3DS Max 7)
V-Ray user since 2008 (V-Ray 1.47)
0 Likes
Message 3 of 9

mark_aldred
Advocate
Advocate

Thanks, but unfortunately that won't do it because there are no edges that make up the old spline shape. The spline was given thickness, so I'm looking to get the line that runs through the middle.

 

0 Likes
Message 4 of 9

leeminardi
Mentor
Mentor

If you have an editable poly and would like to extract a profile try the following:

  1. Select the Edge sub-object and then working in the top view select and Edge that defines the profile of the lathed shape (that has been collapsed). 

    image.png
  2. Click Slice Plane and Slice.  Position the slice plane gizmo so that it is in the center of the object.
    image.png
  3. Now click Create Shape From Selection.
    image.png
  4. The resulting shape is a spline you can use to with lathe or other modifiers.
    image.png
lee.minardi
0 Likes
Message 5 of 9

mark_aldred
Advocate
Advocate

Thanks, but it's not a profile I'm after.

Try this ....

 

1. create an ellipse

2. apply a sweep with a circular section to get a doughnut-like shape

3. collapse to editable poly

 

Now, how would I get the ellipse back? It's the line that runs through the centre of the sections.

 

I actually found a quick and dirty solution but it's not perfect. I selected the innermost egde loop, created a shape and scaled up. An accurate way to place a vertice in the middle of each section would be much better.

 

 

0 Likes
Message 6 of 9

leeminardi
Mentor
Mentor

"I actually found a quick and dirty solution but it's not perfect. I selected the innermost egde loop, created a shape and scaled up. An accurate way to place a vertice in the middle of each section would be much better."

 

Using scale does not create an accurate result.  Picture a long thin rectangle.  Scaling it up yields a larger offset in the long direction of the original rectangle than inthe short direction.  It would be better to choose the top or bottom isoline and remove it to form the centerline of the original sweep path.  Working in a zoomed in front view of the shape I could easily select the isolines (edges) that define the path of the sweep and then remove is as a spline shape.  

 

image.png

 

lee.minardi
0 Likes
Message 7 of 9

mark_aldred
Advocate
Advocate

Thanks for the help.

I actually chose the inner loop instead of this because top loop wasn't centre.

Scale the axes separately and the inner loop works fine.

 

I'd still like to find a better solution. Something like isolate all edge loops (sections), collapse to their centre points and use those vertices to create a spline.

 

 

 

0 Likes
Message 8 of 9

miledrizk
Advisor
Advisor

Maybe you can try this (a little time consuming though):

1- Select each loop of vertices at a time, Right-Click the Scale uniform and set it to 0

On the left is the Original path, it will be used for comparison laterOn the left is the Original path, it will be used for comparison later

2- When finished, in the Edge sub-object level select one edge, click Loop, and use 

The option "Create Shape From Selection", check the option Linear

 

On the left the extracted spline. To the Right the original SplineOn the left the extracted spline. To the Right the original Spline

 

3- I used the Align tool, with the Center - Center option to compare the two shapes

 

Both shapes alignedBoth shapes aligned

------------------------------------------------------
miledrizk@gmail.com
3DS Max 2025, V-Ray 7
3DS Max user since 2003 (3DS Max 7)
V-Ray user since 2008 (V-Ray 1.47)
0 Likes
Message 9 of 9

mark_aldred
Advocate
Advocate

Thanks for the help.

That's exactly what I need to do, but I'd like to either find a short cut or automate.

0 Likes