Skip to content
This repository has been archived by the owner on Dec 23, 2020. It is now read-only.

Bug in Curve.ProjectToPlane, Plane fliped ? #143

Open
goswinr opened this issue May 8, 2013 · 0 comments
Open

Bug in Curve.ProjectToPlane, Plane fliped ? #143

goswinr opened this issue May 8, 2013 · 0 comments

Comments

@goswinr
Copy link

goswinr commented May 8, 2013

I believe Rhino.Geometry.Curve.ProjectToPlane has a bug.
The projected curve seems to be mirrored around the projection plane.
or am I doing something wrong here ?

test this code on any 3d curve not in the Cplane:

import rhinoscriptsyntax as rs
import Rhino.Geometry as geo
import scriptcontext as sc ; ot = sc.doc.Objects

o = rs.GetObject()
c = rs.coercecurve(o)
m = rs.CurveMidPoint(c)

pl= rs.WorldXYPlane()
pl.OriginZ = m.Z

p = geo.Curve.ProjectToPlane(c,pl)
ot.AddCurve(p)

2013-03-18 14 37

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant