Polygonal Converter.
 1-5  …  406-425  426-445  446-465  466-483

Previous
Next
 From:  Tommy (THOMASHELZLE)
6674.446 In reply to 6674.445 
Thanks Stefan,

my question was maybe unclear: I want to do the conversion from OBJ to NURBS, but want sharp corners inside for instance a Ring of polygons (just as a simple example, my real objects are more involved):



These are four polygons (a cube with top and bottom removed) and one sharp edge. I have not found a way in MoI to "disconnect" an edge like that so that the script can treat it as "sharp".

But somehow I feel it would be even better if we would not have to disconnect the pieces for sharp corners but could simply select the edges we want sharp and the script would work from there. The disconnecting has some disadvantages that I guess would be easier to solve with selected edges instead, since you would still have a whole, connected mesh.

I looked at the script but the math is over my head, so I can't directly contribute other than with some brainstorming on possible approaches and workflow.

Cheers and thanks!

Tom
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  amur (STEFAN)
6674.447 
Hi Tom,

now i understand, in Silo for example it's called "crease edges". I quickly created a polygon cube like you show, imported it into the free Fusion 360 (for hobbyists etc.) converted to T-Splines and then creased one edge. See attached image. Another one i have tried is to do the same and then refined the mesh in Silo and imported into Rhino trial with "MeshtoNURB" command, resulting in a high surface patches object in MoI, so not ideal...

So if Max could somehow implement a "crease edge" function for poly import and his subd script, this would be awesome!

Regards
Stefan


https://www.behance.net/futagoza

EDITED: 30 Oct 2016 by STEFAN

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
6674.448 In reply to 6674.446 
Hi Tommy,

unfortunately my script doesn't support creases at the moment.
But you can try to use the split script to make a crease

EDITED: 7 Mar 2022 by SMIRNOV

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Tommy (THOMASHELZLE)
6674.449 In reply to 6674.448 
Hey Max,

awesome, thanks a lot - the good old techniques from the past before there was edge-weighting ;-)
That works pretty well for what I do at the moment, although it creates a tiny rounding instead of a really sharp corner.

Would you consider implementing sharp creases (for instance from an edge selection) or is that out of the scope of what you want to do with the script?
I would really love that feature.

But for the moment I'm very happy :-)



Thanks and Cheers,

Tom

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Tommy (THOMASHELZLE)
6674.450 
Hey Max,

it turns out it's not optimal to work with the multi-line-edges since they tend to create subtle wobbling and smoothing in places where you don't want them.
I can't use an OBJ mesh where the parallel edge-lines coincide completely (for a maximum sharpened edge), I guess the obj importer or MoI merges those away? But even with very small distance values, the Subdiv Script fails (no error message, it just doesn't do anything).
The smallest I seem to be able to go is 0.05 mm which still creates too much smoothness for some of my edges.

So I still would very much love to have a way to set completely sharp corners :-)

Thanks a lot,

Tom
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  noetigenfalls (SIECHFRED_NOETIGENFALLS)
6674.451 
Thank you Max. You have a very good tool created for a fine Program.



Greetings from Berlin
Siechfred
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  keyi
6674.452 
Hi,

I was searching the forum here but didn't saw someone mentioned something regarding ImportObj script.

It seems like, if you have your objects in your other 3D app not perfectly world centered but instead somewhere in the scene - the ImportObj seems to completely ignore
object position/scale when imported in Moi3D, it will just import it in the center of the Moi3D scene. When you export back from Moi3D to other 3D app the object will not anymore be in the original position but instead centered in the middle of the scene.

What i usually do is when i model something in Maya and i see something would be just easier/faster/better to make in Moi3D, i will block it out and export as Obj then using ImportObj script import in Moi3D. At this point the object will not be anymore in original position/scale/rotation so when i am done working in Moi3D and export back to Maya i have to position/scale/rotate the object back in the original place again.

Is there a way currently for Moi3D and other 3D app get along nicely when import/export your object and for object to remember position/scale/rotation instead of, when you import obj, Moi3D to auto center it?


Thanks.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6674.453 In reply to 6674.452 
Hi keyi, there is an option in the importOBJ script to not normalize the object like it does by default.

There's some information here on the setting:
http://moi3d.com/forum/index.php?webtag=MOI&msg=6674.201

To use it, modify your keyboard shortcut to give the parameter "exact", by adding it to the end of the shortcut separated by a space, so your shortcut should read like this:

_ImportObj exact

Also make sure you're running the latest one which you can find on Max's file archive here:
http://moi.maxsm.net/media/files/

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  keyi
6674.454 In reply to 6674.453 
Thanks you so much for this, Michael!! This is now extremely helpful! Thanks!

Actually super cool to have both options since sometimes i want to have object in the middle when importing in Moi3D but most of the time i really need to be
at original position. Nice.


Once again, thank you! ;)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  glmr
6674.455 
the panel disappears or shows message "unsuppotred polygon type"

EDITED: 3 Jul 2016 by GLMR

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6674.456 In reply to 6674.455 
Hi glmr, please post the 3DM model file that you are trying to smooth when you see the error.

My guess though is that you have some faces in your object with 5 or more boundary edges on them. The converter will not work on that type of geometry, I think it requires all faces to have either 3 or 4 sides (triangles or quads).

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  glmr
6674.457 In reply to 6674.456 
this one. it is not an inported model, but just an extrusion from .ai file
Image Attachments:
Size: 137 KB, Downloaded: 239 times, Dimensions: 951x526px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6674.458 In reply to 6674.457 
Hi glmr, well I can see right away that you've got a top face on your extrusion which has 24 holes in it, which right there is not suitable for subdivision smoothing.

In order to do sub-d smoothing, your object needs to be made up only of 3 or 4 sided faces with no inner holes in any of them at all. So instead of one single face on the top with trimmed holes in it, the top part of an object like that needs to be tiled and made up of a bunch of smaller 4 sided faces that sort of flow around the holes.

Also you'd typically have an angular cage-like object as the base object to be subdivided, with all edges just being line segments, not starting out with curvy outlines like you've got there.

Sub-d modeling is a really different approach from a drawing based one like you're showing there.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Karsten (KMRQUS)
6674.459 In reply to 6674.457 
Hello,

try to export the file to .obj-format to get triangles and quads. Then reimport the result with the obj-importer written by Max Smirnov. After that - run the script:-)

Have a nice day
Karsten
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  gara (GARA01)
6674.460 In reply to 6674.422 

Hi Max,

can you help in install your subdivid beta9.

I have copied all the files (new importobj also) in the commands folder, but nothing happened.

Thank you for your help and incredible work in the created of subdivide surfacece.

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
6674.461 In reply to 6674.460 
Hi gara,

Did you install a shortcut key in MoI Options icon?
For example: Select Options / Shortcut keys,
and add a new entry of your choice, such as Alt+F in first column, then _Subdiv_beta9 in the next column.

or for example, Alt+/ _Subdiv_beta9

The prefix _ must match the prefix of the _Subdiv_beta9.htm and .js files. _ is not required, but its presence or absence must match.

Then close and open MoI again, load a solid polygon, such as Box, select it, and type in the shortcut key combo,
for example hold down the Alt key and type F.

(I now use Max's custom ui for Ext.scripts, instead of shortcut keys, and also use _ prefix for the non-basic MoI scripts)
Either method, or both methods may be used.

- Brian

EDITED: 31 Oct 2016 by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  gara (GARA01)
6674.462 In reply to 6674.461 

Thanks Brian,

now it works!

I had miss the step to close and open again MOI

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  gara (GARA01)
6674.463 

I have imported a simple object like a cube, and the obj importer works, but as I apply the subdivision and change the value with the slider appear an error, and if I click done the object disappear.

 

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6674.464 In reply to 6674.463 
Hi gara, the sub-d plug-in requires the object's faces to be quads or triangles, meaning all faces should have 3 or 4 boundary edges on them.

If you have something like a 5-sided pentagonal face in your object for example, that object will not be usable by the plugin and you'll get an error and behavior like you describe.

My guess is that's what you're running into, if you're not sure then please post the 3DM model file of your object so I can take a look at your particular case.

You would need to edit the model to be made up of quad faces before you can subdivide it, you can do this by drawing in some lines and using Edit > Trim to cut things into quads, or you also might try exporting out from MoI as an .obj file using the "Output: Quads & Triangles" option (not n-gons) and then importing that back in again.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  gara (GARA01)
6674.465 In reply to 6674.464 

Hi Michael,

I have use a simple cube for test the plugin, so it has four edge.

I have try also a cube created in moi, but the result is the same

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-5  …  386-405  406-425  426-445  446-465  466-483