Discussion of Inner Space
Moderators: Lavish Software Team, Moderators
-
onlyme
- GamingTools Subscriber
- Posts: 11
- Joined: Wed May 31, 2006 8:42 am
Post
by onlyme » Tue Jan 16, 2007 12:44 pm
To find sphear values I have done this...
Code: Select all
Sphere tmpSphere = new Sphere(tmpRegion);
_point1.X = tmpSphere.Pt.X;
_point1.Y = tmpSphere.Pt.Y;
_point1.Z = tmpSphere.Pt.Z;
_point1.Size = tmpSphere.Size;
But I find nothing for the Triangle.
/Me
-
Lax
- Owner
- Posts: 6634
- Joined: Fri Jun 18, 2004 6:08 pm
Post
by Lax » Tue Jan 16, 2007 2:09 pm
Triangle has 1 member function that isn't in Region, and it is called GetPoint.
-
onlyme
- GamingTools Subscriber
- Posts: 11
- Joined: Wed May 31, 2006 8:42 am
Post
by onlyme » Tue Jan 16, 2007 4:09 pm
GotIT thanx
Code: Select all
case "Triangle":
{
Triangle tmpTriangle = new Triangle(tmpRegion);
_point1.X = tmpTriangle.GetPoint(1).X;
_point1.Y = tmpTriangle.GetPoint(1).Y;
_point1.Z = tmpTriangle.GetPoint(1).Z;
_point2.X = tmpTriangle.GetPoint(2).X;
_point2.Y = tmpTriangle.GetPoint(2).Y;
_point2.Z = tmpTriangle.GetPoint(2).Z;
_point3.X = tmpTriangle.GetPoint(3).X;
_point3.Y = tmpTriangle.GetPoint(3).Y;
_point3.Z = tmpTriangle.GetPoint(3).Z;
} break;
/Me