Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Creating Plane through 3 Points in featureScript
shane_poole
Member Posts: 7 ✭
Does anyone have any tips for creating a new plane through 3 points. Have not had any luck with all test attempts of cPlane, opPlane, etc.
This at least creates a plane just not the correct one...
Any tips appreciated!
var b = vector(32, 56, 0) * millimeter;
var a = vector(88, 0, 0) * millimeter;
var c = vector(88,56,50) * millimeter;
var _origin = (a+b+c)/3;
var _normal = cross((c-a), (b-a));
var newplane = plane(_origin, _normal);
This at least creates a plane just not the correct one...
Any tips appreciated!
Tagged:
0
Answers
-
Points relative to origin (0, 0, 0)0
-
Really? That looks correct. Posting a link to a version of a shared document would help debug this, if indeed it's the wrong plane.Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc0
-

Attempting to create plane ABC0 -
It looks like the plane is correctly going through a b and c and the points themselves are in the wrong place.Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc0
-
Alright, I will try and rework the points. Thanks for taking a look!0
-
Looks like I got some of the y and z coordinates mixed up, correct plane would be:
a = (32, 0, 56)
b = (88, 50, 56)
c = (88, 0 ,0)0 -
Would be nice to have world origin & coord.
Y is into page.
1 -
Yes my original coordinates were with respect to the front plane (my error), basing them relative to the top plane fixed the issue.0
-
I was having a hard time keeping it straight and getting the coordinates correct. Looking at the triad helped me follow along.
Added triad as a visual guide.
Welcome to Onshape.
0


