How about vector of a line? i know it is simply change by using flip curve. but if there is a bunch of random line, and i want to know each vector direction. how can i do that?
, 0); Point3d riverEnd = new Point3d (1000, 1000, 0); Point3d stparentPt = new Point3d (parentPt.X, parentPt.Y, 0); Point3d stnewPt = new Point3d (newPt.X, newPt.Y, 0); Line river = new Line(riverStart, riverEnd); //river.ToNurbsCurve(); Line street = new Line(stparentPt, stnewPt); //street.ToNurbsCurve(); Rhino.Geometry.Intersect.CurveIntersections ci; //ci = Rhino.Geometry.Intersect.Intersection.CurveCurve(river, street, 0,0001, 0,0001); // Conversion fails. ci = Rhino.Geometry.Intersect.Intersection.LineLine(river, street, out a, out b); // LineLine intersection dosent work
one the one hand, i cant get the conversion from a line to a curve work
on the other the LineLine intersections also dosen't work with these errors:
1. Error (CS0131): The left-hand side of an assignment must be a variable, property or indexer (line 116)
2. Error (CS0029): Cannot implicitly convert type 'Rhino.Geometry.Line' to 'Rhino.Geometry.NurbsCurve' (line 116)
3. Error (CS0029): Cannot implicitly convert type 'bool' to 'Rhino.Geometry.Intersect.CurveIntersections' (line 120)
…
Added by Vinzenz Rauch at 6:04pm on December 5, 2016
list of lines.
My issue is sometimes I try to create a line between two points, and I get a line between the last parent node and 0,0,0. ( I have attached an image of the output to show the error. Nodes, 2, 10, and 9 connect to 0,0,0 but they shouldn't.
I am assuming that if the line constructor doesn't receive a valid point, it assumes the world origin as a point?
If so, what is the syntax for checking to see whether a point3d variable is not valid?
Below was my attempt at checking it but I recieved this error.
Error: 'IsNot' requires operands that have reference types, but this operand has the value type 'Rhino.Geometry.Point3d'. (line 139)
------------------------------------ If ptChildBelow IsNot Nothing Then ' this what I wan't done
Dim lineA As New Line(ptParent, ptChildBelow) listLines.Add(lineA) End If
-------------------------------------
Thanks in advance for the help, and I uploaded my definition in case it's useful for anyone.…
Added by Faiyaz Khan at 9:58pm on February 22, 2012
and left side of the center line are an array that change in scale. I think I know how to do it by doing it line by line, but am wondering if there is a fast way…