keep geometry when collapsed to poly

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  01 January 2008
keep geometry when collapsed to poly

Does anyone know if I can convert an editable mesh to editable poly without modifying the existing geometry?

I have a single face in which I've created 1 vert and all edges connected to that vert are invisible. Everytime i collapse to an editable poly the vert dissapears.

Any help much appreciated.
__________________
www.richterdesigns.co.uk
 
  01 January 2008
Try to make two of those edges visible before collapsing, if I understand your problem right.
 
  01 January 2008
Ah yes, that is what I tried to do.

I'm cutting 2 verts into a face using meshop.divideFace. which makes all new edges visible. But doesnt always create an edge between the newly created verts.(which is what I need) I want to keep the resulting mesh tidy so I do some code to hide all the new edges. Then i want to create an edge between those new verts using polyOp.cutVert.

Another reason why I make edges invisible is because I dont want to add more verts than the ones I have created. using polyOp.cutVert will cut through visible edges and add verts on intersection. (or does it not matter if they're invisible?)

Is there perhaps an easier way of creating an edge between the new verts?

Thanks
__________________
www.richterdesigns.co.uk
 
  01 January 2008
I've been playing around and think the CUT command sort of does what i want. But does any one know how to get it to work?


This is what I copied from the listener output but does not work in a script:
$.modifiers[#Edit_Poly].SetOperation #Cut
$.modifiers[#Edit_Poly].StartCut #Face 1 [0,0,0] [0,0,1]
$.modifiers[#Edit_Poly].EndCut [1,1,0]
$.modifiers[#Edit_Poly].Commit ()
__________________
www.richterdesigns.co.uk

Last edited by dutch_delight : 01 January 2008 at 11:50 AM.
 
  01 January 2008
Hi again,

I've managed to get the command working but for some reason I cant specify the cut properly.

Ive got a quad in a top view with the bottom left vert at 0,0 and top right vert at 1,1 and an edit poly modifier applied. Units are in meters and the quad is 1 by 1 meter.

When I try to cut between test1 and test2, nothing happens. but when I cut between test3 and test4, (recorded from listner) it seems to work fine.


Max Modify
test1 = (point3 0.191948 0.925194 0)
test2 = (point3 0.521948 0.815194 0)
test3 = (point3 -69.9336 88.9717 0)
test4 = (point3 -69.6278 88.7848 0)

$.modifiers[#Edit_Poly].StartCut #Face 1 test1 [0,0,1]
$.modifiers[#Edit_Poly].SetCutEnd test2


The cut function seems to be ignoring the world units. Is it using screen coordinates?

any ideas?

__________________
www.richterdesigns.co.uk

Last edited by dutch_delight : 01 January 2008 at 01:46 PM.
 
  01 January 2008
Try using Turn to Poly and then convert to Editable Poly.
Quote: <Turn_to_Poly>.removeMidEdgeVertices Boolean default: true -- boolean; Remove_Mid_Edge_Vertices

When set to true (default), vertices in the middle of an edge will be removed automatically.
-Eric
__________________
"The Evil Monkey hiding in your closet."
 
  01 January 2008
Thanks for that. I've tried it but that only keeps the verts if they're on an edge. I've got a combination of edge verts and mid face verts.

Basically if I could get the cutstart and cutend to work on a Poly object I'd be more than happy as that is exactly what I need.

Someone?....Anyone?
__________________
www.richterdesigns.co.uk
 
  01 January 2008
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 01:27 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.