Hi,
I am just learning Ruby...
Given
arrIcosaVtxs = Array.new(12, Array.new(3))
I can assign like this
`
arrIcosaVtxs[0] = [Geom;;Point3d.new(0, 0, 0),
Geom;;Point3d.new(1.m, 0, 0),
Geom;;Point3d.new(0, 1.m, 0)]
`
but this
`
arrIcosaVtxs[0, 0] = [Geom;;Point3d.new(0, 0, 0)]
arrIcosaVtxs[0, 1] = [Geom;;Point3d.new(1.m, 0, 0)]
arrIcosaVtxs[0, 2] = [Geom;;Point3d.new(0, 1.m, 0)]
`
fails here
component.entities.add_face(arrIcosaVtxs[0]) ; # returns a Face
I am happy to use what works, just wondering why...
Q2
I lifted the add_face code from a tutorial.
In the tute the author assigned the result to a variable.
newface = new_comp_def.entities.add_face(points) ; # returns a Face
I have removed the assignment assuming I can access a face in the entities later if need be?
Q3
Also, is it possible to create all my geometry and add to a component later?
Q4
And possible to make a created component appear in the tray?
thx...