&fork=hydra_2&id=Vector-BasedShadow_Study&slide=1&scale=1&offset=0,0 )
It worked fine with basic geometries. But when I put my projects geometry in the input it was loading for ages and I had to stop it.
Than I reduced my geometry and picked up some elements from it. Curved nurbs surfaces. I have drawn it in Rhino ( _networksrf)
With the reduced geometry I got some output after a long time (although I have a fast PC) but it wasn´t well. The shadows vectors were fragmentary ( attached file)
Is the code incomplete for geometries like mine? Or is it the wrong approach for those curved surfaces? Is there any better code for my aim?Thx for your help
Leo…
Added by Leonard Kern at 9:49am on October 12, 2016
I change paramenters in GH sliders I see the progress in rhino with 4/5 seconds lag.
I think it is not an hardware issue, this is my configuration
Mainboard SuperMicro
Dual CPU Xeon x5650 (24 total core)
12GB DDRIII ECC
Hdd velociraptor 300Gb
Vga Nvidia Quadro FX3800
Hi, I attach the project files; when I move the slider bubbles trying to slide from a little value to another (like 50, 120, ecc) the result on screen is slowly to be shown.My question is, with the pc configuration listed above, is it normal with this project?There are parameters I can set in Grasshopper or Rhino to have faster results?There's a specific driver or configuration for my video card to improve performance?I would be very interested to see if the hardware on my system allows optimal performance with grasshopper or is normal with a definition so short ,even if it is the Voronoi , the system so slow to refresh when I move the slider
Thank you for your time…
inner As Curve() = section.ToNurbsCurve().Offset(normal, pc, -plate, 1e-3, 1e-4, Rhino.Geometry.CurveOffsetCornerStyle.Sharp)
the error message is:
"
{0}0. Error: Het oplossen van de overbelasting is mislukt omdat dit aantal argumenten door geen enkele toegankelijke Offset wordt geaccepteerd. (line 104)
"
this is the VBA script:
"Option Strict OffOption Explicit On'Import SDK and Framework namespacesImports RhinoImports Rhino.GeometryImports Rhino.CollectionsImports GrasshopperImports Grasshopper.KernelImports Grasshopper.Kernel.DataImports Grasshopper.Kernel.TypesImports GH_IOImports GH_IO.SerializationImports SystemImports System.IOImports System.XmlImports System.DataImports System.DrawingImports System.ReflectionImports System.CollectionsImports System.Windows.FormsImports Microsoft.VisualBasicImports System.Collections.GenericImports System.Runtime.InteropServices'Code generated by Grasshopper(R) (except for RunScript() content and Additional content)'Copyright (C) 2011 - Robert McNeel & Associates<System.Runtime.CompilerServices.CompilerGenerated()> _Public Class Script_Instance Implements IGH_ScriptInstance#Region "Members" ''' <summary>List of error messages. Do not modify this list directly.</summary> Private __err As New List(Of String) ''' <summary>List of print messages. Do not modify this list directly, use the Print() and Reflect() functions instead.</summary> Private __out As New List(Of String) ''' <summary>Represents the current Rhino document.</summary> Private doc As RhinoDoc = RhinoDoc.ActiveDoc ''' <summary>Represents the Script component which maintains this script.</summary> Public owner As Grasshopper.Kernel.IGH_ActiveObject#End Region#Region "Utility functions" ''' <summary>Print a String to the [Out] Parameter of the Script component.</summary> ''' <param name="text">String to print.</param> Private Sub Print(ByVal text As String) __out.Add(text) End Sub ''' <summary>Print a formatted String to the [Out] Parameter of the Script component.</summary> ''' <param name="format">String format.</param> ''' <param name="args">Formatting parameters.</param> Private Sub Print(ByVal format As String, ByVal ParamArray args As Object()) __out.Add(String.Format(format, args)) End Sub ''' <summary>Print useful information about an object instance to the [Out] Parameter of the Script component. </summary> ''' <param name="obj">Object instance to parse.</param> Private Sub Reflect(ByVal obj As Object) __out.Add(GH_ScriptComponentUtilities.ReflectType_VB(obj)) End Sub ''' <summary>Print the signatures of all the overloads of a specific method to the [Out] Parameter of the Script component. </summary> ''' <param name="obj">Object instance to parse.</param> Private Sub Reflect(ByVal obj As Object, ByVal method_name As String) __out.Add(GH_ScriptComponentUtilities.ReflectType_VB(obj, method_name)) End Sub#End Region ''' <summary> ''' This procedure contains the user code. Input parameters are provided as ByVal arguments, ''' Output parameter are ByRef arguments. You don't have to assign output parameters, ''' they will be null by default. ''' </summary> Private Sub RunScript(ByVal p0 As Point3d, ByVal p1 As Point3d, ByVal p2 As Point3d, ByVal pc As Point3d, ByVal plate As Double, ByVal itt As Integer, ByVal dev As Double, ByRef crvout As Object, ByRef crvin As Object, ByRef sec As Object, ByRef opp As Object, ByRef div As Object, ByRef pt4 As Object) 'your code goes here… opp = "test01" Dim section As New Polyline(5) section.Add(p0) section.Add(p1) section.Add(p2) section.Add(pc) section.Add(p0) Dim normal As Vector3d = vector3d.CrossProduct((p1 - p0), (p2 - p0)) Dim area As Double Dim chicken_int As Int32 = 0 Dim XX As Double Dim YY As Double Do chicken_int += 1 If (chicken_int > itt) Then Exit Do 'Compute the section offset Dim inner As Curve() = section.ToNurbsCurve().Offset(normal, pc, -plate, 1e-3, 1e-4, Rhino.Geometry.CurveOffsetCornerStyle.Sharp) Dim edges As New CurveList(inner) edges.Add(section.ToNurbsCurve()) crvin = edges Dim sections As Brep() = Brep.CreatePlanarBreps(edges) If (sections Is Nothing) Then Exit Do opp = "test02" 'Compute the centroid of the current section Dim am As AreaMassProperties = AreaMassProperties.Compute(sections(0)) Dim ct As Point3d = am.Centroid XX = am.CentroidCoordinatesMomentsOfInertia.X YY = am.CentroidCoordinatesMomentsOfInertia.Y area = am.Area Dim dx As Vector3d = pc - ct 'Compute the error of the current centroid Dim dl As Double = dx.Length div = dl 'Update output values crvout = section crvin = inner sec = sections(0) opp = area If (dl < dev) Then Exit Do 'Adjust outline with a boosting factor. section(3) += dx * 4 Loop pt4 = section(3) crvout = section End Sub '<Custom additional code> '</Custom additional code> End Class
"…
ers of the last surface in the Brep, however, only the corners of the bounding box of the surface are generated)
It seems the rs.SurfacePoints only returens the control points of a surface rather than the actual corners of the surface. Can you advise if there's a way to do it?
Thank you!
Code:
import rhinoscriptsyntax as rsall_parts = rs.ExplodePolysurfaces(brep)centers = []vectors = []lines = []vertices = []cnt = 0for part in all_parts: center, err = rs.SurfaceAreaCentroid(part) centers.append(center) #rs.AddText(str(cnt), center) uv = rs.SurfaceClosestPoint(part, center) vector = rs.SurfaceNormal(part, uv) vectors.append(vector) N_start = center N_end = rs.VectorAdd(center, vector) line = rs.AddLine(N_start, N_end) lines.append(line) #vertices = rs.SurfacePoints(part) vertices = rs.SurfaceEditPoints(part) cnt +=1#C = centers#N = vectors#L = linesV = vertices#todo:#explore the surface methods in rhinoscript.surface...#import rhinoscript.surface.…
Added by Grasshope at 10:34pm on September 15, 2015
e time to get the gist of this:
http://geometrica.com/en/architectural/specifications-and-details
Of course there's endless combinations out there ranging from roofs that leak (umbrellas a must) to roofs that are work of art (many dollars a must).
For non modular panels and "easy" nurbs curvatures (if around)... well ... only Foamglas (1 s) is the answer (+ serated plates + SBS membranes + a proper fixing system + VM Zink, Kalzip, Ti sheets etc etc) ... but that requires a certain experience to design and apply.
On the other hand there's the Israelis around as well (best PC roofs by a million miles):
http://www.palram.com/Architecture…
hopper concepts and Parametric design. Design professionals from all industries are welcomed. Rhino intermediate level is required to attend this class. You will need to bring a PC laptop with Rhino 5.0 and latest Grasshopper installed.
Registration already started! Limited seats available.
To register:http://www.akiyomatsuoka.com/#!rhino-training-schedule/con8…
e of them are easy to fix and relate to library Grizzlybear not sure:
2. I have problem and do not know how to apply different construction Floors: to GroundFloor, exposed floor?
…
rk for Rhino, this is a first go at a very simple tool to get an idea of how fast different computers are at performing the sort of calculations used in Kangaroo, with the aim of informing those buying or upgrading their machines.
If you could take a couple of minutes to download and run this definition (after closing other running applications), then post here the result and your PC specs, hopefully we can start building a basic picture of what effect different hardware really has on the speed Kangaroo runs.
Most of the information can be found in the System page of Control Panel.
RAM speed can be checked in your BIOS, or with a tool like CPU-Z (note that the reported frequency from this should be doubled to get the actual RAM speed rating - eg if the frequency is 800MHz you should write DDR3-1600. It's confusing I know - see some discussion of this here), or by searching online for the specs of your PC model number.
This definition is purely testing the speed of the internal physics calculation, not display, so graphics-cards are irrelevant.
For now this is just to get a single general measure of overall Kangaroo speed, but it might also be interesting later to run a variety of tests to see how the speed varies with the size and complexity of simulation.
Of course a way of benchmarking general Grasshopper performance would be very nice to have as well, but would involve a lot more variables, and I'd be interested if anyone has ideas about how that could work.
Note - I posted a couple of versions of this earlier with various errors that were causing incorrect results. If you downloaded the earlier KangaMark01.gh or KangaMark02.gh file, please disregard that and any results from it and use the one posted here below:…
d have been informed about it.So something is wrong with download of the raster data from the opentopography.org to your PC.
Let's try a couple of things:1) Paste this link into your internet browser's address box (Firefox, Chrome ...) and hit Enter:http://opentopo.sdsc.edu/otr/getdem?demtype=SRTMGL3&west=-120.1...Does that result in download of a file .tif?If it does, then what is the size of that .tif file?…
is: "C:\Program Files\MapWinGIS" then the command would like:
regsvr32 "C:\Program Files\MapWinGIS\mapwingis.ocx"
Restart your Rhino and Grasshopper and try running Gismo then.
If first method does not work, try:2) Add Environmental variable as: both "user variable" and "system variable".
The variable should be: "GDAL_DATA", and its Value should be: "yourMapWinGiS_installation_folder\gdal-data".
For example, for upper installation folder, it will be:
"C:\Program Files\MapWinGIS\gdal-data"
Restart your PC! Then run Rhino and Grasshopper again.
Please let us know, if nothing of this is works.…