Community

Create Aperture  

  RSS

frans.magnusson@white.se
(@frans-magnussonwhite-se)
Active Member
Joined: 3 weeks ago
Posts: 6
31/10/2019 11:08 am  

Someone has to be the first noob in a forum right 🙂
i would like to create an aperture in GH - what is the workflow?


Quote
Topic Tags
admin
(@admin)
Member Admin
Joined: 1 year ago
Posts: 7
31/10/2019 11:39 am  

Hi Frans,

Here is the simplest way:

1. Create two rectangles in GH. One rectangle sits inside the other one just like a window sits inside a wall (co-planar).

2. Pipe them separately to Topology.ByGeometry

3. Use Topology.AddAperture and feed the "wall" as the topology and the "window" as the aperture topology (you may need to make it into a list if it is a single item).

Another thing to try is to make a CellComplex. Get all the faces, scale them around their own centroid by a fraction (e.g. Xscale = YScale = ZScale = 0.5). So now you have smaller faces that are co-planar with the original faces. Now use AddApertures and feed it the CellComplex and these new scaled down faces.


ReplyQuote
frans.magnusson@white.se
(@frans-magnussonwhite-se)
Active Member
Joined: 3 weeks ago
Posts: 6
31/10/2019 2:38 pm  

@admin

Thank you for the rapid response!
I managed to get output from Topology.Apertures with  two co-planar faces as input. 
With the cell-complex - no such luck. Does the aperture geometry have to be derived from the cell-complex geometry in some way, or should it suffice that i know that the geometries are co-planar?


ReplyQuote
admin
(@admin)
Member Admin
Joined: 1 year ago
Posts: 7
31/10/2019 4:55 pm  

Please try the attached GH definition


ReplyQuote
frans.magnusson@white.se
(@frans-magnussonwhite-se)
Active Member
Joined: 3 weeks ago
Posts: 6
01/11/2019 10:54 am  

@admin

Thank you!

Is it that you need to get to the faces before you can get the apertures?

 


ReplyQuote
admin
(@admin)
Member Admin
Joined: 1 year ago
Posts: 7
01/11/2019 10:58 am  

@frans-magnussonwhite-se

Yes exactly. Apertures are the "children" of faces.  "Contents" can be the children of any topology


ReplyQuote
Share:

Please Login or Register