MoI discussion forum
MoI discussion forum

Full Version: Cone and Conical Frustum Unwrap

Show messages:  1-18  19-38  39-44

From: Frenchy Pilou (PILOU)
18 Sep 2013   [#19] In reply to [#18]
Maybe a cool explanation! :)
But want some proof of that!

else some italian curves ;)

From
George L. Legendre’s book, Pasta by Design, provides the gourmet geometry behind a wide range of different pasta shapes from across Italy.
You’ll never look at Spaghetti Bolognese the same way again.






From: BurrMan
18 Sep 2013   [#20] In reply to [#14]
@Danny,
""""""I'm still laughing""""""""
:)


Thanks, that method is a result of a discussion here with Miguel Gibseone.......
From: Mauro (M-DYNAMICS)
19 Sep 2013   [#21] In reply to [#19]
@Pilou:

Maybe a cool explanation!
But want some proof of that!

else some italian curves
-----------------------------

That was just my deduction :) ..no proof...

about Italian curves:
..i don't want to start again the eternal discussion between you and us about who is best to make wine,cheese,fashion... :)

here an example of mathematic and design to create a new shape of pasta by one of the best Italian designers:Giorgetto Giugiaro !





This is also a quick introduction to Giugiaro,better known as car-designer
I'm just modeling his classic piece that i'll post soon here
Au revoir ;)
From: bemfarmer
19 Sep 2013   [#22]
Oops, Frustum is the correct spelling.
Michael, can you correct the spelling in the Subject?

A script for unwrapping a cone, or a conical frustum, with the top cut off parallel to the base, is attached.

Implementation of the checkbox for Frustum, versus Cone, is a bit Clunky.
Is there a better way to the checkbox, to change the selection from frustum top circle, to cone apex?
I tried hard with code from Flow, but did not succeed in making a better interface for the checkbox.

A test 3dm of a frustum and a cone is included.

- Brian

December 29, 2017: Updated ConeUnwrap script is here: http://moi3d.com/forum/index.php?webtag=MOI&msg=6175.33
(Post 33 below)
From: Frenchy Pilou (PILOU)
19 Sep 2013   [#23] In reply to [#21]
@Mauro
Appetizing!

Maybe you know this very elaborated French pasta by Stark ? ;)


From: Mauro (M-DYNAMICS)
20 Sep 2013   [#24] In reply to [#23]
I knew Philippe Stark did a new pasta shape but,like his colleague Giugiaro,without success...
people here buy classic ones:

"spaghetti's family"



"short pasta"



all these,most common are:Spaghetti-Rigatoni-Fusilli-Farfalle
they join well with four classic sauces:
Burro & Salvia (melted butter and sage leaves cooked together)
Pesto (Basel leaves+garlic+Parmigiano cheese+extra-virgin olive oil+pine nuts,all fresh,smashed together)
Ragu'..best known outside as Bolognese (ground meat and tomato sauce cooked together)
Carbonara (fresh eggs+little bacon cubes+pepper quickly cooked together)

-------------

My apologizes to Brian and Burr for this "gourmand" off-topic :)
From: BurrMan
20 Sep 2013   [#25] In reply to [#24]
non la prego di accettare le mie scuse for me.

That's the way to use the ole noodle!
From: Mauro (M-DYNAMICS)
20 Sep 2013   [#26] In reply to [#25]
..si figuri signor Burr....non c'è di che'.... :)
(..means in a kind way:you don't need to say excuse me)
From: Frenchy Pilou (PILOU)
20 Sep 2013   [#27] In reply to [#24]
Thanks for this pasta encyclopedia! :)

PS Seems the Stark form is an avatar of this! :)


From: bemfarmer
21 Sep 2013   [#28]
Solved the camoflaged cone mystery.
Seems a second cone was hiding underneath.




Currently working on conical pasta from a Logarithmic2D script ceiling projection :-)

(And unwrap of a curve on a cone, using object list of lots of points.)

Image Attachments:
CamoCone02.PNG 


From: bemfarmer
30 Dec 2017   [#29]
Here is an update to the ConeUnwrap script, which works on circular cones with axis perpendicular to the base.
It uses two buttons to select cone with apex vs conical frustum. (Using Michaels method in History command.)
Also the frustum unwrap line segments were redone, so the Unwrap is Sweep ready. (Do NOT use planar, as UV isocurve would likely not match.)
The script appears to work just fine under MoI4Dec2017beta.
- Brian

I typed up some documentation which might be nice in a wiki...
A couple of remarks: Holes in the cone, or bites out of the cone, or curves on the cone, can be unwrapped using Flow, with the cone face and unwrap Sweep face.
Also, in the event the holes disrupt the base circle, slantseam, or top circle, substitutes can be created by the user, or use a substitute intact cone or frustum.


Edit 1/1/2018, Corrected 2 "bugs" in the script. New version is here: (post 33)
http://moi3d.com/forum/index.php?webtag=MOI&msg=6175.33
From: Finema
30 Dec 2017   [#30] In reply to [#29]
Thanks a lot !
Work fine also under MoI V3
From: Karsten (KMRQUS)
30 Dec 2017   [#31] In reply to [#29]
Hello Brian,

thanks for improving the script!

Have a nice day
Karsten
From: bemfarmer
1 Jan 2018   [#32]
There is a defect in the script if the Frustum is "upside down."

In other words, if the selected "Base" circle of the Frustum is of smaller radius that the selected "Top" circle.

I think this can be corrected by exchanging the length values of the Top and Bottom in the code...

- Brian

(The script does not unwrap cylinders.)

The Unwrap is called a "Net" by mathematicians.

Also, the script is leaving behind copies of the circles and slantseam line.
From: bemfarmer
1 Jan 2018   [#33] In reply to [#32]
Corrected ConeUnwrap script.

For frustum, uses larger of the two selected circles as the Base, and removes the previously leftover, Base and Top Curves, and the SlantSeam line segment.

For cone and frustum, removes the previously leftover, Top Curve, and the SlantSeam line segment.

- Brian

Edit: This is an OLD version, see post 39 below for latest version

Attachments:
_ConeUnwrap3_Jan1_2018.zip


From: bemfarmer
2 Jan 2018   [#34] In reply to [#33]
Looks like I'll need to add a While loop to clean up extra geometry, for cancel button.
History button did not need it (?)
- Brian
From: Michael Gibson
2 Jan 2018   [#35] In reply to [#34]
Hi Brian, yeah the Edit > History button doesn't do anything at all until you've pushed one of the 2 buttons in it. If you push Cancel instead it doesn't do anything so there isn't anything to clean up.

Also whether your script needs to do cleanup depends on how it's doing things - if it manually adds objects to the geometrydatabase itself then it will need to clean those up itself as well. But if it uses factory.update() to use the factory's built in object management mechanism and never calls factory.commit() then it should also get cleaned up automatically as well.

- Michael
From: bemfarmer
3 Jan 2018   [#36] In reply to [#35]
Thank you Michael.

I have not located a script which adds geometry, then does user picks, with Cancel not causing added geometry to remain.
I used .clone to reveal the top and bottom edges of the frustum, rather than a factory...
So far attempts to copyFactory the edges have not worked. It should be fairly easy :-) (I'll try again tonight.)
Removing the Cancel button from the display prevented it from being pushed, and leaving added geometry curves,
but maybe that is not a good solution if faulty geometry picks causes some hangup?

I see that Cancel of the BlendCap script will leave the selected edge, split into two parts. (They can be easily Merged back together.)

On another user picking topic regarding cone Base, or frustum Top and Base, picking:

For a cone, if the 2D Base curve is not a Closed, only part of the cone will be unwrapped to the Net.

For a frustum, the Top and Base curves must "Match."
Either both curves should be closed, otherwise both curves should end in the same line segments from Top to Bottom.

If the user selects the "wrong" Base curve, SlantSeam curve, or Top curve, or in the "wrong" order, the "wrong" unwrap (Net) will be displayed.
User verification that the Net is "correct" may be important.
- Brian
From: Michael Gibson
3 Jan 2018   [#37] In reply to [#36]
Hi Brian,

> I have not located a script which adds geometry, then does user picks, with Cancel not
> causing added geometry to remain.

There should be a lot of the default commands that would be examples of this, for example if you push Cancel in the Line command instead of finishing the second point pick it won't leave behind whatever line was showing.


> I used .clone to reveal the top and bottom edges of the frustum, rather than a factory...

That's ok, but yes if you are not using the factory update()/commit() mechanism it will be up to the script to do the cleanup, it won't happen automatically.

- Michael
From: bemfarmer
4 Jan 2018   [#38]
I've overcome my script problem with leaving extra circle and line geometry upon Cancel in the middle of the script.

Attempting to objectpicker select the Face and generate curves for the base/top/slantseam with Copy factory, was interfering with objectpicker selecting the curves/edges.
Why this has been so is still a mystery. The previous .clone code worked OK, but had the extra curve problem upon Cancel.

But by removing all of the objectpicker Select Face code, and not generating .clones or copies of edges, by removing that code, a mere click on the appropriate face, and then selecting the edges works just fine. It is too late to clean up the reduced size code tonight...

- Brian

Show messages:  1-18  19-38  39-44