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…
Maybe with numbers it would be easier to understand.
If there is 1 insert to the list 5
If there is a 5 insert to the list 6 or 4
So if i start from 1 one possible list would be: {1, 5, 6}
r example:
{1} {6} Is this possible to do with Replace Branches?
{2} {5}
{3} => {3}
{4} {4}
{5} {5}
{6} {6}
If it were two lists, then it's very easy with List Replace, but kill me, I can't get what's the logic in Replace Branches...
Please help!
…
Added by Artyom Maxim at 10:05am on January 29, 2013
If you right click on the 'Random' component, you will find an option for "Integer Numbers".
You might need to generate random integers of 3, 4, 5 or 6 and multiply that by ten?