2010-04-01 09:56 AM - last edited on 2023-08-03 11:50 AM by Doreena Deng
2010-04-01 10:15 PM
Mike wrote:If I understand the question properly, this is not (directly) achievable. When you place a window into a wall,
But how can I get the geometry data of opening, include the vertices, edges, polygons, GUID, material, and so on?
2010-04-02 03:58 AM
Ralph wrote:Dear Ralph Wessel,Mike wrote:If I understand the question properly, this is not (directly) achievable. When you place a window into a wall,
But how can I get the geometry data of opening, include the vertices, edges, polygons, GUID, material, and so on?allthe geometry arising from that relationship is found in the bodies of the wall and window elements. There is no 'opening' body.
However, you could infer the opening faces based on surface normals etc. This would be easy for ordinary window types, but may be near impossible in the worst cases.
2010-04-02 12:22 PM
Mike wrote:I completely agree with you. This is a poor way to calculate opening data, but there is no easy solution with the API. Sorry - I've spent a long time looking into this in the past and didn't come away with a good answer.
It looks so worse, and it is really not a good idea to calculate the geometry data of opening by ourselves, and it is so difficult to calculate the worst case. I think the API can provides the some methods for us to get it. Wish you can provide some solutions.
2010-07-13 12:57 PM
2010-07-13 07:33 PM
Matti wrote:This is what I was suggesting earlier, but it's not the kind of solution you'd expect via the API. It isn't 100% reliable either, because the geometry of the door/window might not be telling you anything about the opening, particularly if the object incorporates additional detailing for the wall surrounds that should not be considered part of the 'opening'. For example, it is quite possible to create doors/windows that don't have any opening at all, e.g. a niche, but it is impossible to determine that just by analysing the geometry of the object.
3. Calculate convex hull of the points
4. Make an extrusion geometry using the points and wall thickness.
2010-07-14 09:19 AM
It is sad that there is no 100% reliable way to obtain opening geometry.
Currently, this is the only way to obtain information on holes in walls. Look for polygons which have a horizontal normal vector perpendicular to the reference line of the wall.
#define API_NeigFlg_HoleSel 0x0001
#define API_NeigFlg_Extra3D 0x0002
APINeig_Wind = 9, // hotspots in the window object
APINeig_WindHole = 10, // corners of window hole
APINeig_Door = 11, // hotspots in the door object
APINeig_DoorHole = 12, // corners of door hole
APINeig_Wind3D = 63, // 3d hotspots in the window object
APINeig_Door3D = 64, // 3d hotspots in the window object
ACAPI_Goodies (APIAny_NeigToCoordID,&neig,&coord);
2010-07-14 11:47 AM
Matti wrote:Yes, it is sad. But what is "opening geometry" seems not so simple question.
It is sad that there is no 100% reliable way to obtain opening geometry.
2010-07-14 01:06 PM
Oleg wrote:Correct - this question rises above the level of simple geometry, and ArchiCAD has no facility for that kind of data. I have even greater problems exporting data for thermal modelling for this reason, coupled with the fact that ArchiCAD models have no material data, e.g. thermal properties.
But what is "opening geometry" seems not so simple question.
2010-07-14 01:39 PM