[info-performer] how to change properties of geometric objects

New Message Reply Date view Thread view Subject view Author view

From: Tao Kang (tao.kang++at++asu.edu)
Date: 03/07/2003 11:53:38


Hi, everyone:

I am a beginner so maybe the question is stupid. But I really hope
you can help me.

I want to build several geometric objects and they have their own DCS but
not
independent.
First, I wanna build one cylinder with one sphere attached. I used following
codes:

 gset1 = pfdNewCylinder(600, arena); or gset = pfdNewPipe(0.4f, 0.4f,
200,arena);
 gset2 = pfdNewSphere(600, arena);
 pfAddGSet(gnode1,gset1);
 pfAddGSet(gnode2, gset2);

 dcs1 = pfNewDCS();
 pfAddChild(dcs1,gnode1);
 dcs2 = pfNewDCS();
 pfAddChild(dcs2, gnode2);

 pfAddChild(dcs1, dcs2);

My problem is I want to specify the radius and lenth of cylinder and radius
of sphere too.
If I use pfDCSScaleXYZ, the sphere will change the shape because two dcs
binding together.

What function I need to call to specify the properties of geometric objects?

I appreciate your great help!

Tao Kang

Graduate Student
Harrington Department of Bioengineering
College of Engineering and Applied Sciences
Arizona State University
(480)727-6010


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Mar 07 2003 - 11:52:17 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.