attach one trimesh to another

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
Old 12 December 2010   #1
attach one trimesh to another

atm i'm using a simple "tMesh += tMesh" wich kinda works but uses boolean and kinda messes up the whole thing in many cases. so was wondering if theres a way to attach a triMesh to another one.
they dont have nodes as its inside a simpleObject plugin

never mind
Code:
if i == 1 then mesh = slice.mesh else ( local tMesh = copy mesh meshop.attach tMesh (transformMesh slice.mesh newTM) mesh = tMesh )
__________________

Last edited by Insanto : 12 December 2010 at 02:06 PM.
 
Old 12 December 2010   #2
I haven't looked if there is an easier solution but you could just deconstruct one and add the verts to the other making sure that you increment the vertex ids up my the amount of verts in the mesh you are attaching to.

Does that make sence?
__________________
Paul Neale
http://paulneale.com
 
Old 12 December 2010   #3
it does but the code i edited my post with actually works, hence the weird smiley

before i tried to attach it to the mesh directly, didnt work
then i did it like this (copy trimesh; attach new trimesh; assign combined trimesh to var) and it worked

so it turns out you dont need a node for the meshOp.attach fn

your solution wouldve been me next way to go, thx for the time tho

also i dont really have the xp with de and reconstructing a mesh, i always kinda mess up the vert order and therefore normals :P
__________________
 
Old 12 December 2010   #4
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.
 
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 02:47 PM.


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