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 Tools Display Modes
  12 December 2010
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

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.
  12 December 2010
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
  12 December 2010
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
  12 December 2010
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
Society of Digital Artists

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

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

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