architecture-building-systems / hive

Rhino Grasshopper plug-in for quick & dirty building simulation
https://www.food4rhino.com/en/app/hive
GNU General Public License v3.0
31 stars 4 forks source link

draw 3d arrows with varying thickness and length and color #764

Closed ChrisZenhub closed 1 year ago

ChrisZenhub commented 1 year ago

old example: https://github.com/christophwaibel/GH_Wind/blob/master/GHWind/GHVisualizerVectors.cs a bit buggy in rhino 7

ChrisZenhub commented 1 year ago

see issue #763, need to modify drawing properties between walls and windows

ChrisZenhub commented 1 year ago

image.png

ChrisZenhub commented 1 year ago

image.png

ChrisZenhub commented 1 year ago

https://discourse.mcneel.com/t/modify-color-and-arrowheads-of-addlineparameter-in-outputparams/35634/3

ChrisZenhub commented 1 year ago
            // 2 lists origins (windows and walls)
            // 2 lists for losses vectors (1 for windows, 1 for walls) -> blue
            // 1 list for gains vectors (only for windows) -> red

            var origin = new Rhino.Geometry.Point3d(0.0, 3, 2);
            var vec = new Rhino.Geometry.Vector3d(2, 46, 3);
            //vec.Length

            var line = new Rhino.Geometry.Line(origin, vec, vec.Length);

https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Line__ctor_2.htm