Cancel
Showing results for
Did you mean:

Valued Contributor

Hey guys , i'd like to know how to use the AddByPlaneGeometry function properly.

I got 3 points that create my plane.

the first parameter is the origin of the plan, ok i get that, i'll use one of my point as the plane origin.

the second parameter is the normal, ok i'll do a cross product of my two other points to do that.

the third seems to be the x axis ?? so one of my point I used for my normal should do the job ?

The goal of this is to create a bounding box around a weird shaped part.

I use the SolidEdgeGeometry.Body.GetRange to retrieve min and max values.

I create the 6 points of my bounding box with these values.

I then want to create the 6 sketches required to draw the bounding box.

Any hints ?

Thank you very much !

Posted by: David Shooner
Post date: 2/2/2012 4:50:26 AM

Valued Contributor

The third parameter is the x axis.

It is the orientation of the plane.

As for the parameters of the AddByPlaneGeometry function :

The first one is the origin, the (0, 0, 0) of your plane.

The second is the normal of the plane, which direction the plane will face.

The vector here starts from the real (0, 0, 0) and not the origin of your plane. It's a direction.

The third is the x axis of the plane.

Once we have the origin and the direction the plane will face, we need to determine the x axis direction of this new plane.

The vector here also starts from the real (0, 0, 0) and not the origin of your plane. It's a direction.

Posted by: David Shooner
Post date: 2/8/2012 4:55:57 AM