rep' to type 'System.Collections.Generic.IEnumerable`1[Rhino.Geometry.Brep]'. (line: 86)
This basically translates to: "I wanted a collection of Breps and you've given me a single brep". You'll need to put your cone and boundingbox into a collection. Easiest is to make an inline array:
Dim result As Brep() = Brep.CreateBooleanIntersection( _
New Brep() {cone}, _
New Brep() {boundingbox}, _
0.001)
I concur it should probably work on individual breps as well, I'll add those overloads to RhinoCommon.
-----------------------------
Dim volume As Double = rhino.geometry.VolumeMassProperties.Compute(result(0))
This is wrong. VolumeMassProperties.Compute() does not return a single number. It returns a new instance of the VolumeMassProperties class, which contains the volume, but also the error, the centroids, the moments of inertia and so on and so forth.
Dim vp As VolumeMassProperties = VolumeMassProperties.Compute(result(0))
A = vp.Volume
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
: Castellano
Horarios
Básico - miércoles
18.30 - 21.30 h
Avanzado - miércoles
15.00 - 18.00 h
Una vez finalizado el curso, el alumno podrá solicitar un diploma acreditativo del mismo.
Normativa: http://daetsam.aq.upm.es/servicios/cursos/informacion
Información cursos: http://daetsam.aq.upm.es/servicios/cursos/primavera2014
Métodos de pago: http://daetsam.aq.upm.es/noticias/2014/02/16/cursos-primavera-2014-aplicaciones-informaticas-e-idiomas
…
le discontinuous list of index numbers and I'd like to be able to generate a set of domains where each span of numbers would have its own domain. For example:
This list: 5,6,7,8,9,22,23,24,25,26,77,78,79,80,81...
Would give these domains: 5 to 9, 22 to 26, 77 to 81...
I'm at a loss as to how I can achieve this though. I know I can use the bounds function on the list but that would give a single domain, not several. In case it helps the list in question was generated by a true/false cull pattern from the complete list of indices so simply determining the indices of the beginning and end of each chunk of 'trues' in the cull pattern would work as well as it would give the same domains. I can post an example file if anyone would like but I figure this is a pretty general issue.
So anybody have any ideas on how to solve this multiple domains from a single list problem? Thanks in advance for any help at all, I'd really appreciate it!
James…
ng (It's a bit similar to the Knapsack problem):
I have a Variable --> XandI Have fix numbers (can we call "pieces") 9,12,15,18
I'd like to reach the X, with the summing of these numbers and using the minimum pieces ,it can't be lower than X, but it can be higher, maximum with 3.After this it has to found the most optimal combination which mostly use the same pieces
E.G.
X=98
The wrong solution is like = 1pcs of 18 = 9pcs of 9
Sum of pieces are 10
OR
= 3pcs of 18 = 1pcs of 15 = 1pcs of 12 = 2pcs of 9
Sum of pieces are 7
The right solution in this case = 5pcs of 18 = 1pcs of 9
(5*18)+(1*9)=99 it's good beacuse it's over with maximum 3 and uses the minimum pieces
Then it sends to a list like18 : 5pcs15 : 0pcs12 : 0pcs9 : 1pcsCan somebody help me ? Or is it possible to make this ?
Thank you…
Added by Petrik Kollár at 1:09am on November 10, 2017
llowing for higher skyline and construction areas along public transportation corridors. Up until now, neighborhoods once characterized by two-story houses, gardens and ground- floor open shopfront programs, have been completely transformed by the introduction of fortressed monolithic residential and office towers, which lack any sort of urban street life.
The new master-plan, however, now requires buildings to have an open street façade to accommodate multiple programs. Led by tutors from UNStudio (www.unstudio.com), the AA Visiting School São Paulo will address the changes being prescribed by the new masterplan through the redefinition of the tower typology in the extending of the ground of street culture, green landscapes and ecological mediation along the vertical axis of these buildings. For this, the workshop will teach advanced digital design and fabrication techniques to explore a series of novel differentiating structural and environmental organizations in the redefinition of the São Paulo skyscraper.
For more information:
saopaulo.aaschool.ac.uk
Applications:
https://www.aaschool.ac.uk/STUDY/ONLINEAPPLICATION/visitingApplication.php?schoolID=303
For any queries, please email: brazilvisitingschool@aaschool.ac.uk.…