PDA

View Full Version : Attaching Two Meshes


safe05
07-03-2007, 01:35 AM
Hello all,
I'm running into a strange little problem when creating a custom helper script. I wanted to create a helper that is represented by two spheres (think attenuation settings as found on an omni light). What I can't seem to get working is attaching two spheres together in getDisplayMesh. Perhaps I'm missing something specific to extended helpers, but I'm at a loss.

on getDisplayMesh do
(
meshObj = createInstance sphere radius:10 segs:16 mapCoords:false
meshObj2 = createInstance sphere radius:2 segs:16 mapCoords:false
mesh = meshObj.mesh + meshObj2.mesh
)

Any recommendations on how I can get two scalable spheres in my helper object without building them by hand?

Thanks

Zbuffer
07-03-2007, 11:01 AM
Hi,

The '+' using meshes is not attach, but boolean operation, and since the surface don't cross...
use meshop.attach instead
also you might need to convert a sphere to a mesh before.

safe05
07-05-2007, 01:47 PM
of course. you're absolutely right. thanks for the help.

CGTalk Moderation
07-05-2007, 01:47 PM
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.