MoI discussion forum
MoI discussion forum

Full Version: Surface From Points

From: Cody (ECHOLOCATING)
22 Mar 2023   [#1]
Frenchy Pilou asked about orientating arrays of objects to surfaces... https://moi3d.com/forum/index.php?webtag=MOI&msg=11019.1 ...and it got me thinking.

I'd like to be able to "drop" a grid array of points to intersect a bunch of surfaces. Essentially making a height map(?) and then I'd like to make a surface from those points.

Basically, I want to drape (or stretch) a cloth over multiple surfaces (and possibly objects) in a single direction.

Thinking about it deeper, though not as crucial, I imagine a grid of quads being produced that some subD smoothing could be applied to.

FYI, I've used some of Max's scripts, but not all of them. I use MoI 3.0.

Any input is welcome... except the one that goes, "you're ugly and your mother dresses you funny". ;-)

-- Cody
From: Michael Gibson
22 Mar 2023   [#2] In reply to [#1]
Hi Cody,

re:
> I'd like to be able to "drop" a grid array of points to intersect a bunch of surfaces.

There are some script functions added in version 4 for dropping points to a curve or surface:
http://moi3d.com/wiki/V4Beta#Jan-22-2020
quote:

Add script methods for dropping points:
curve.dropPoint( pt ) - returns curve parameter value of closest point on the curve to the given 3D point.
curvesegment.dropPoint( pt ) - returns curve parameter value of closest point on the curve segment to the given 3D point.
face.dropPoint( pt ); - returns 2D uv coordinate point of closest point on the face to the given 3D point.
brep.dropPoint( pt ); - finds closest point on brep to given 3D point. Returns a list with 3 items, 0: Face object that the closest point is on, 1: 2D uv coordinate for the face, 2: 3D coordinate of the closest point.

> Basically, I want to drape (or stretch) a cloth over multiple surfaces (and possibly objects) in a single direction.

There is a Rhino command called "Drape" that can do that.

- Michael
From: Frenchy Pilou (PILOU)
22 Mar 2023   [#3]
I suppose that you have seen the _Cloth by Max Smirnov ?
https://moiscript.weebly.com/simulation-tissu.html


From: Death
23 Mar 2023   [#4] In reply to [#3]
Is there an English version?
From: Frenchy Pilou (PILOU)
23 Mar 2023   [#5] In reply to [#4]
Yep! :)
https://moi3d.com/wiki/MaxScriptArchive
From: Death
24 Mar 2023   [#6] In reply to [#5]
Thanx my friend!