Grasshopper

algorithmic modeling for Rhino

Unexpected behavior in Rhino.Geometry.Plane(a,b,c,d)

Rhino.Common documents said Rhino.Geometry.Plane(a,b,c,d) creates ax+by+cz=d, but, it seems like to create 1/N(ax+by+cz)=d, where N=Sqrt(a*a+b*b+c*c).

The problem is, d is not divided by N. When (a,b,c) is not normalized vector, the returned plane is different from expectation.

Views: 298

Comment

You need to be a member of Grasshopper to add comments!

Comment by Masaaki Miki on August 20, 2014 at 9:01pm

It was not (ax+by+cz)=d but (ax+by+cz+d)=0. (a b c) is always normalized so that Plane(a,b,c,d) doesn't create (ax+by+cz+d)=0 but 1/N(ax+by+cz)+d=0

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service