Intersect surfaces test with API

Become a member of the CGSociety

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

Thread Tools Search this Thread Display Modes
  06 June 2005
Question Intersect surfaces test with API

Hello, just started working with the Maya API recently after trying to work with something in MEL and finding it too slow. I'm trying to replicate the functionality of the MEL command "intersect" which tells if two NURBS Surfaces are intersecting, and then creates the curve on surface for the intersection.

I don't actually need to create the curve, all I need to do is check if they're intersecting. The part I can't figure out is - the intersect command creates an intersectSurface node and then feeds the two surfaces you want to test as input to it. It connects the worldSpace attribute to the inputSurface attribute of the intersectSurface node.

Now before it connects it, the worldSpace attribute is an empty array. After it connects it, it has a single value which it uses to connect. How do I replicate this in API?

Or, is there an easier way to perform the test that I'm missing?

Thanks for the help!

  06 June 2005
check out KoshigayaStudiosScripts ( there is a nice intersect mel script there.
  06 June 2005
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 06:56 AM.

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