city_generator2

Generated conformal 3D meshes representing a city
git clone git://git.meso-star.fr/city_generator2.git
Log | Files | Refs | README | LICENSE

commit 3a5ba799710c3b7da936dcf2f20d74759bdafa6f
parent cd080f8aad9d31b60e0e71e0f9c2f7b901e7848b
Author: Benjamin Piaud <benjamin.piaud@meso-star.com>
Date:   Wed, 18 Jan 2023 14:12:52 +0100

Add connection between ground et crawlspace (Mode 1) and split export of
ground

Diffstat:
Msrc/cg_construction_mode_1.c | 5++++-
Msrc/cg_ground.c | 1+
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/cg_construction_mode_1.c b/src/cg_construction_mode_1.c @@ -1043,7 +1043,7 @@ build_connection /* with roof insulation */ if (data_cad->roof_insulation) { - CREATE_CONNECT(habitable_cavity,roof_insulation,"_C_roof_insulation"); + CREATE_CONNECT(habitable_cavity,roof_insulation,"_C_cavity_roof_insulation"); } else { /* with roof */ CREATE_CONNECT(habitable_cavity,roof,"_C_cavity_roof"); @@ -1069,6 +1069,9 @@ build_connection /* with wall */ CREATE_CONNECT(crawlspace_cavity, foundation,"_C_crawlspace_foundation"); + + /* with ground */ + CREATE_CONNECT(crawlspace_cavity, fake_ground,"_C_crawlspace_ground"); } /* -------------------------------------------------------------------------*/ diff --git a/src/cg_ground.c b/src/cg_ground.c @@ -71,6 +71,7 @@ ground_export_stl(const struct ground* ground, const int binary) res_T res = RES_OK; ERR(scad_stl_export(ground->boundary, "B_ground", 0, binary)); + ERR(scad_stl_export_split(ground->boundary, "B_ground", binary)); exit: return res;