Thanks RM, somehow this option of yours doesn't work if you have other numbers (i have tried to add a third branch with (12;12;12;5;8) (randomly) and the result goes to 0
ersect (2, 3, 4, 5, 6) with the line and the ones which do not intersect (0, 1, 7). Intersect is done! But how to get the non intersecting vectors (0, 1, 7)?
So I e. g. could deselect vectors 2, 3, 4, 5, 6 so I would display/use only vectors 0, 1, 7 and the bounced ones.
Appreciate your help!
Rudi…
per components.
I have attached a 3dm file and a picture so you guys can see what I am talking about.
I have previously translated boxes into breps, which i did with this code:
Dim bbx As New box(pl, New interval(-.5, .5), New interval(-.5, .5), New interval(-.5, .5)) Dim ms As New Mesh() ms.Vertices.AddVertices(bbx.GetCorners) ms.Faces.AddFace(0, 1, 2, 3) ms.Faces.AddFace(0, 1, 5, 4) ms.Faces.AddFace(1, 2, 6, 5) ms.Faces.AddFace(2, 3, 7, 6) ms.Faces.AddFace(3, 0, 4, 7) ms.faces.addface(4, 5, 6, 7) ms.Normals.ComputeNormals()
ms.Compact()
I have tried to do something similar with this specific example, and I now that meshes only consist of quads or triangles, so i broke down the geometry into quads without any succes.
Looking foreward to any suggestions.
- Jens…
nd this is the error text:
0. Current document units is in Meters1. Conversion to Meters will be applied = 1.0002. [1 of 8] Writing simulation parameters...3. [2 of 8] No context surfaces...4. [3 of 8] Writing geometry...5. [4 of 8] Writing Electric Load Center - Generator specifications ...6. [5 of 8] Writing materials and constructions...7. [6 of 8] Writing schedules...8. [7 of 8] Writing loads and ideal air system...9. [8 of 8] Writing outputs...10. ...... idf file is successfully written to : C:\Users\Pier\Desktop\Dottorato\Energy_plus_file\cell room\EnergyPlus\cell room.idf11. 12. Analysis is running!...13. C:\Users\Pier\Desktop\Dottorato\Energy_plus_file\cell room\EnergyPlus\eplusout.csv14. ......
Done! Read below for errors and warnings:
15.
Thanks in advance to all for your help me
Francesco…
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
rve
10 curve
11 curve
12 curve
13 curve
...and I'd like to rearrange the order in which the curve are listed, to something like this:
{0,0,0}
0 curve
1 curve
8 curve
9 curve
10 curve
11 curve
2 curve
3 curve
4 curve
5 curve
12 curve
13 curve
6 curve
7 curve
I hope this makes sense.
Thank in advance for any advice,
John…