top of page
Search

A Deep Learning and CAD-based 3D Model Reconstruction Framework for Building Façades: Turning Complex Data into Beautiful Models

Writer: Farhan Ardianzaf
Farhan Ardianzaf
Feb 4, 2025
6 min read

Urban planning, architectural visualization, heritage conservation, and the rise of digital twins are driving an exciting shift in how we approach 3D building models. Gone are the days when architects and planners had to rely on manual surveys and basic CAD tools to create their designs. Thanks to advances in technology, we now have automated systems that use photogrammetric point cloud data to generate highly detailed 3D models—saving time, effort, and preserving every little detail of a building's façade. But while this method is a game changer, there are still some challenges, such as data noise, occlusions, and incomplete datasets that can hinder model accuracy.

Final Integrated Model. Integration of CAD Models and Structural Facade Components

That’s where my research comes in! I developed a comprehensive framework that integrates semantic segmentation, CAD alignment, and 3D reconstruction techniques to create building façade models that are not only geometrically accurate but visually stunning. Ready for the details? Let’s dive in! 🚀


Step 1: The Power of DLA-Net for Semantic Segmentation 💻

Visualization of semantic segmentation results on the building façade: (A) Original Point Cloud, (B) Ground Truth, (C) Classification Segmentation Results on the Building Façade, and (D) Side-by-Side Comparison of the Original Point Cloud and the Classification Result
Visualization of semantic segmentation results on the building façade: (A) Original Point Cloud, (B) Ground Truth, (C) Classification Segmentation Results on the Building Façade, and (D) Side-by-Side Comparison of the Original Point Cloud and the Classification Result

First off, I used DLA-Net, a deep learning architecture specifically designed for semantic segmentation of point clouds. This means the system automatically identifies architectural features such as walls, windows, and balconies from the raw data. During training, the model achieved an impressive mean Intersection over Union (mIoU) of 82.52%, which dropped slightly to 81.06% during testing—a great result! 📊 These high accuracy scores ensure that the model can reliably segment building elements, forming a strong foundation for the next steps. 🏗️


Step 2: CAD Alignment – Bringing It All Together 📐

The CAD models for alignment, totaling up to 100 models, were sourced from 3D Warehouse or created in SketchUp. These models represent six distinct classes: Air Conditioner, Advertisement, Advertisement Board, Balcony, Railing, and Window.

Workflow for CAD model fitting and alignment
Workflow for CAD model fitting and alignment

Once the segmented data is ready, the next step is to accurately align the CAD model with the point cloud data, which is crucial for ensuring the 3D model reflects the true geometry of the building. This alignment is a multi-step process that requires advanced techniques for fine-tuning the CAD model to the point cloud. Here's how I achieved this:


1. Watertight Conversion

Before diving into alignment, the CAD models were carefully reconstructed to create complete, continuous surfaces. Any gaps or incomplete areas were sealed, and the geometry was repaired to meet manifold criteria, ensuring that the CAD models were "watertight." This process helps prevent errors during alignment and guarantees the model behaves as a solid 3D object during reconstruction.


2. Rough Alignment Using Oriented Bounding Boxes (OBB) 🎯

The first step in alignment involves establishing a rough alignment of the CAD model to the point cloud.

  • PCA for Initial Feature Extraction: I began by computing the centroid, covariance matrix, eigenvalues, and eigenvectors of the point cloud to identify its major axes of variance.

  • Rough Alignment Using OBB: Using a tool like Trimesh, I computed Oriented Bounding Boxes (OBBs) for both the CAD model and the point cloud. The OBBs are aligned in scale, centered, and rotated to match the primary features of the point cloud, establishing an initial rough alignment.

  • Iterative Refinement: The alignment was further refined iteratively. The process was repeated until the error between steps fell below a set tolerance, ensuring that the rough alignment was as accurate as possible before moving to finer techniques.


3. Fine Alignment Using ICP & RANSAC 🔧

Once the rough alignment was complete, I applied more advanced techniques to fine-tune the alignment and ensure a high degree of precision.


  • Noise Removal (SOR): The first step was to eliminate noisy points from the point cloud using Statistical Outlier Removal (SOR). This step ensures clean data that improves the overall alignment process.

  • RANSAC (Random Sample Consensus): This technique fits dominant geometric structures and filters outliers, enabling the CAD model to align to the primary shapes in the point cloud, such as walls, beams, and columns.

  • ICP (Iterative Closest Point): The ICP algorithm was employed to iteratively refine the alignment by aligning the CAD model and the point cloud data.


  • Steps involved in ICP included:

    • Mesh-to-Point Cloud Conversion: Converting the CAD mesh into a point cloud to facilitate alignment.

    • Normal Calculation: Computing normals for both point clouds to better match the surface orientations.

    • Threshold Reduction: Gradually reducing the alignment thresholds to achieve finer and more accurate transformations.


4. Rigid Registration Using Coherent Point Drift (CPD) 🌀

The next stage of alignment focused on rigid registration, ensuring precise alignment while preserving the integrity of the CAD model's structure.

  1. Initialization: The process starts with setting up an initial rotation matrix (R), translation vector (t), and scaling factor (s) to begin the alignment.

  2. Expectation-Maximization (EM) Iterations: The CPD algorithm performs EM iterations:

    • Expectation Step: Computes a probability matrix that maps points from the source point cloud to the target (CAD) point cloud using Gaussian distributions.

    • Maximization Step: Minimizes the distance between the two clouds by refining the transformation parameters (R, t, s) to optimize the alignment.

  3. Transformation Update: After the EM algorithm converges, the rigid transformation parameters are applied to align the point clouds optimally, ensuring both datasets are aligned in 3D space.


5. Deforming CAD Meshes Using FFD & ARAP 🌟

Finally, the CAD model undergoes flexible adjustments to match the point cloud more closely. This step allows for both global and local refinements:

  • Using FFD (Free-Form Deformation): FFD applies controlled transformations to the entire CAD model, stretching, compressing, or twisting the mesh globally. This step allows for broad adjustments to handle large mismatches in shape and size between the CAD model and the point cloud.

  • Using ARAP (As-Rigid-As-Possible): ARAP refines the model further by adjusting individual vertices iteratively. The goals include:

    • Chamfer Distance: Minimizing the distance between the CAD model and the point cloud.

    • Edge Length Preservation: Ensuring that edges are not excessively stretched or compressed.

    • Surface Smoothing: Keeping the model’s surface smooth and natural.

    • Normal Consistency: Ensuring that surface normals align properly for visual coherence.

  • Integration of ARAP and FFD: The combination of FFD for broad adjustments and ARAP for finer local refinements results in a model that is both geometrically accurate and visually consistent with the point cloud.


Step 3: 3D Reconstruction – Geometrically Accurate and Visually Stunning 🏗️🔨


Now, the real fun begins—3D reconstruction! 🎉 I used two primary methods for modeling the building components: planar fitting and block-like modeling.

  • Planar fitting focuses on geometric accuracy, achieving mean distances of just 0.5 to 0.8 cm for beams and columns—talk about precision! 🔍 However, some localized misalignments do appear due to missing or imperfect data.

    Plane Detection Using RANSAC
    Plane Detection Using RANSAC
  • Block-like modeling, on the other hand, prioritizes visual realism. While it may not be as precise (mean distances of 7 to 14 cm), it gives the model a more aesthetically pleasing look, perfect for applications that require visual fidelity, like architectural visualization. 🎨



The final 3D model beautifully blends both structural and non-structural components—think walls, beams, windows, balconies, and even advertisement boards and air conditioners. 🏢🚪 The result? A visually realistic and geometrically accurate 3D representation of the building that can be used for anything from urban modeling to heritage conservation. 🏙️

Visualization of the integration process for the building facade. (A) Original point cloud data. (B) Classification results obtained using DLA-Net. (C) Final integrated 3D model combining CAD-based non-structural elements with structural components. (D) Side-by-side comparison of the complete integrated model and the original point cloud.
Visualization of the integration process for the building facade. (A) Original point cloud data. (B) Classification results obtained using DLA-Net. (C) Final integrated 3D model combining CAD-based non-structural elements with structural components. (D) Side-by-side comparison of the complete integrated model and the original point cloud.

Bridging the Gap: Real-World Applications 🌍

The results? A robust and adaptable framework that achieves an average geometric accuracy of 2.93 cm with planar fitting and 4.88 cm with block-like modeling. This research takes 3D building modeling to the next level, blending accuracy with aesthetics to produce Level of Detail 3 (LOD3) building models that are perfect for urban planning, architectural visualization, and heritage conservation. 🏙️🌟

Comparison of modeling methods: (A) Planar fitting shows minimal distance (blue) with some greenish misaligned areas; (B) Block-like structures introduce more green in beams and columns but enhance visual coherence.
Comparison of modeling methods: (A) Planar fitting shows minimal distance (blue) with some greenish misaligned areas; (B) Block-like structures introduce more green in beams and columns but enhance visual coherence.

Moving forward, the research will focus on enhancing classification algorithms, improving data acquisition methods, and streamlining workflows to push the boundaries of what’s possible in 3D modeling. The future of urban development and architectural design is here, and this framework will be at the forefront, paving the way for more sophisticated, precise, and visually appealing building models. 🌍🚀

 
 
 

Comments


  • Line
  • LinkedIn
  • Facebook
  • Instagram
  • Discord

© 2035 by Talking Business. Powered and secured by Wix

bottom of page