Exploring 3D Roadway Modeling Techniques Using CAD and Unity3D
Abstract
1. Introduction
2. Methods
2.1. Basic Principles of Rapid Model Construction
2.2. System Development Architecture
- Data handling: The system reads DXF files, stores centerline data, and manages 3D model files.
- Model calculations: It computes cross-section key points from roadway parameters and applies special logic to bends and intersections.
- Labels and annotations: Users can tag roadways with names, lengths, slopes, and compass orientations directly on the 3D model.
- Interactive features: The interface supports zooming, panning, rotating, and virtual walkthroughs of the roadway network.
- First, the centerline tool sketches the roadway layout and exports it as a DXF file.
- Next, the Unity3D editor imports this file and instantly generates a 3D model with default parameters.
- Users can then tweak any roadway’s name, dimensions, or textures (like ground and wall materials), with changes updating live. For realism, the system offers authentic mine-style textures.
2.3. Rapid Extraction of Tunnel Centerlines Using CAD-Based Technology
- Adding Survey Points: Users can directly select the coordinates and elevation labels of survey points from CAD drawings, eliminating the need for tedious manual input. The entered survey point data are displayed in a list. To prevent users from manually defining connections between nodes, the program allows only sequential input of nodes along a single roadway at a time. Clicking “Draw” automatically generates the centerline for the current roadway.
- Clearing Survey Point Data: Users can clear the list of survey points to prepare for entering data for the next roadway.
- Automatic Elevation Interpolation: For nodes without elevation parameters along a roadway, the program automatically calculates elevations using linear interpolation based on existing node elevations.
- Intersection Handling: If two roadways intersect without a shared node, the segment splitting algorithm is applied to split all centerlines at their intersection points. This ensures that any intersection between two roadways occurs at an endpoint of their centerlines, guaranteeing that crossing points exist and share a common node.
Algorithm 1 Pseudo-code for roadway segmentation. |
Input: Input line segment set S = {{x1, y1, z1},{x2, y2, z2},…,{xN, yN, zN}} Output: Split line segment set S′ 1: Initialize S′ ⇐ S 2: for each line segment {xi, yi, zi}∈S do 3: Let the set of intersection points on line li be pts 4: for each line segment {xj, yj, zj}∈ S and i≠j do 5: Calculate the intersection point mi between line segments li and lj 6: if li intersects with lj and the intersection point mi is not on the endpoint of li then 7: Remove li from S’ 8: Add mi to pts 9: end if 10: end for 11: if pts.count>0 then 12: Sort pts by the distance from the starting point of li 13: Split the current line segment into new segments set{startpointi,pts[0]},{pts[0], pts[1]}...{[pts[count −1],endpointi} 14: Add the new segments to S’ 15: end if 16: end for 17: return S’ |
- Export Centerlines: Finally, after completing the centerline drawing, the user can click the “Export” button to export the roadway centerline as a DXF file.
3. Results and Discussion
3.1. Three-Dimensional Modeling of a Single Roadway Based on Unity3D
3.2. Processing of Roadway Turning Point Models Based on Unity3D
- Using the roadway centerline and basic parameters, calculate the left/right sides and cross-section models of the two roadways. At their intersection, determine the meeting points of the two roadways’ sides.
- Using the line connecting these two points as the base, maintain the original roadway height and arch height to construct an arched cross-section, which serves as the intersecting cross-section for both roadways.
- As illustrated in Figure 6, employ a curve lofting algorithm to connect the three cross-sections, completing the processing of the roadway turning point.
3.3. Cross-Roadway Modeling Method Based on Unity3D
3.3.1. T-Shaped Intersection Tunnel
- (1)
- Determine Intersection Points: Calculate the intersection points A and C where the left and right walls of tunnel segment OO3 meet the left wall of tunnel O1O2, as well as points B and D where they intersect the right wall.
- (2)
- Construct Arch Sections: Using line segments AB and CD as bases, build arched tunnel cross-sections based on the tunnel height and arch rise. Retain only the arched tops corresponding to segments BO and DO.
- (3)
- Segment the T-Junction: With EF as the base, construct another arched cross-section, preserving only the OE segment of the arch. This divides the T-junction into three parts: MNBOE, GHDOE, and QPDOB.
- (4)
- Generate Surface Mesh: Apply a lofting algorithm to connect: ①Arch surface OE with GO1 and MO2; ② Arch surface OD with HO1 and PO3; ③Arch surface OB with NO2 and QO3. This creates quadrilateral surface meshes, forming the 3D model of the T-junction. The resulting intersection demonstrates smooth connectivity and seamless splicing, as shown in the figure.
3.3.2. Cross-Shaped Intersecting Tunnels
3.3.3. Y-Shaped Intersection Tunnel
- (1)
- Calculate the intersection points A, B, and C between the sidewalls of the three roadways. Using twice the lengths of OA, OB, and OC as the base edges while maintaining the original roadway height and arch height, construct arched cross-sections, retaining only half of each arch crown.
- (2)
- Divide the roadway into three segments—AMNCO, AEFBO, and BQPCO—based on the three arched cross-sections. Finally, employ a lofting algorithm to generate the 3D surface model of the Y-shaped roadway.
3.4. Field Applications
3.5. Limitations and Prospects
- (1)
- Smooth Transitions at Curved Turns: The current approach for handling curved sections in underground roadways involves adding additional survey points and using straight-line segments to approximate the curve [19]. However, this method results in visually noticeable edges, failing to achieve a smooth transition in the 3D model at curved turns. This discrepancy from actual roadway conditions underscores the need for future research to explore more advanced curve-fitting algorithms.
- (2)
- Modeling Complex Cross-Sections: Further research and refinement are necessary to accurately model roadways with intricate cross-sectional shapes, such as horseshoe profiles, to enhance both the accuracy and realism of the models.
4. Conclusions
- (1)
- By leveraging CAD secondary development and employing interpolation algorithms, this method facilitates the rapid generation of roadway centerlines. Compared to traditional manual drawing techniques, it substantially reduces the workload involved in preliminary data processing for roadway modeling.
- (2)
- The parametric tunnel modeling approach employs surface fitting and curve lofting algorithms to construct 3D tunnel models, accurately representing geometric topology at inflection points, slope transitions, and intersections while effectively resolving surface penetration issues in the models.
- (3)
- The tunnel editor developed on the Unity3D platform facilitates the rapid application of various textures to tunnel floors and walls. Compared to traditional modeling methods in AutoCAD, the resulting tunnel models exhibit significantly more realistic visual effects. Unlike mainstream mining modeling software such as BIM and 3DMine, Unity3D-generated models offer cross-platform compatibility, enabling seamless integration into scenarios like VR-based mine safety training. This capability provides strong support for advancing intelligent mine rescue training and simulation systems.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Li, M.; Mao, S.; Zhao, M. Research progress and prospects of coal mine intelligent geological guarantee systems. Coal Sci. Technol. 2023, 51, 334–348. [Google Scholar] [CrossRef]
- Qiang, L.; Yanling, W.; Owusu, A.B. A modified Ester-branched thickener for rheology and wettability during CO2 fracturing for improved fracturing property. Environ. Sci. Pollut. Res. 2019, 26, 20787–20797. [Google Scholar] [CrossRef] [PubMed]
- Plavšić, J.; Mišković, I. VR-based digital twin for remote monitoring of mining equipment: Architecture and a case study. Virtual Real. Intell. Hardw. 2024, 6, 100–112. [Google Scholar] [CrossRef]
- Wang, T.; Zhang, T.; Cheng, L. Research and Application of 3D Geology and Roadway Modeling in Coal Mines. Energy Energy Conserv. 2024, 6, 322–324. [Google Scholar] [CrossRef]
- Chen, D.; Pang, N.; Nie, W.; Feng, J.; Kan, J.; Zhang, J. Classification denoising and 3D reconstruction of roadway point clouds. Coal Geol. Exp. 2025, 53, 54–64. [Google Scholar] [CrossRef]
- Li, M.; Kang, J.; Liu, H.; Li, Z.; Liu, X.; Zhu, Q.; Xiao, B. Study on parametric 3D modeling technology of mine roadway based on BIM and GIS. Coal Sci. Technol. 2022, 50, 25–35. [Google Scholar] [CrossRef]
- Zhu, Q.; Zhang, Z.; Liang, J.; Liu, X.; Gu, L.; Zhong, L. Fast generation method of 3D mine roadway model and its application. China Saf. Sci. J. 2022, 32, 48–57. [Google Scholar] [CrossRef]
- Li, W.; Jiao, Y.H.; Qiu, L.; Zhang, X.X.; Ren, D.J. Parametric Modeling of Mine Roadway Based on Dynamo. Met. Mine 2022, 555, 63–70. [Google Scholar] [CrossRef]
- Zhao, L.; Zhang, Y.; Liu, G. Study and Application of 3D Mine Roadway Parametric Modeling Method. Met. Mine 2024, 188–195. [Google Scholar] [CrossRef]
- Li, J.; Li, J.; Lu, J.; Cheng, X. Construction of Three-dimensional Development Model of Underground Mine Based on AutoCAD. Min. Eng. 2021, 19, 29–32. [Google Scholar] [CrossRef]
- Xue, X.; Qin, Y.; Yang, X.; Yue, J.; Guo, Y.; Mao, Q.; Wang, C.; Zhang, X. Digital modeling optimization method of coal mine roadway based on attention mechanism and generative adversarial network. J. China Univ. Min. Technol. 2025, 54, 304–315. [Google Scholar] [CrossRef]
- Li, Q.; Cheng, Y.; Zhang, H.; Yan, C.; Liu, Y. Simulating the effect of hydrate dissociation on wellhead stability during oil and gas development in deepwater. J. Ocean Univ. China 2018, 17, 35–45. [Google Scholar] [CrossRef]
- Liu, B.; Cui, H.; Liu, R.; Su, Y.; Xue, X. A self-adaptive smoothing modeling method for tunnel nodes based on centerline topology relationship. J. Shandong Univ. Sci. Technol. (Nat. Sci.) 2024, 43, 67–73. [Google Scholar] [CrossRef]
- Huang, M.; Zhang, Y.; Sheng, G.; Li, J. Study on the Automatic Modeling of 3D Pipe Network. Geomat. World 2016, 23, 55–61. [Google Scholar]
- Zhang, H.; Mao, S.; Li, M. A Coal Mine Excavation Tunnels Modeling Method Based on Point Clouds. Appl. Sci. 2024, 14, 9454. [Google Scholar] [CrossRef]
- Wang, L. Modeling method of underground roadway intersection processing based on binary space partition tree. Saf. Coal Mines 2022, 53, 138–143. [Google Scholar] [CrossRef]
- Li, Q.; Li, Q.C.; Wang, F.L.; Xu, N.; Wang, Y.L.; Bai, B.J. Settling behavior and mechanism analysis of kaolinite as a fracture proppant of hydrocarbon reservoirs in CO2 fracturing fluid. Colloids Surf. A Physicochem. Eng. Asp. 2025, 724, 137463. [Google Scholar] [CrossRef]
- Li, Q.C.; Wu, J.J.; Li, Q.; Wang, F.; Cheng, Y. Sediment instability caused by gas production from hydrate-bearing sediment in Northern South China Sea by horizontal wellbore: Sensitivity analysis. Nat. Resour. Res. 2025, 34, 1667–1699. [Google Scholar] [CrossRef]
- Li, Q. Reservoir Science: A Multi-Coupling Communication Platform to Promote Energy Transformation, Climate Change and Environmental Protection. Reserv. Sci. 2025, 1, 1–2. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Yang, Y.; Sun, Y.; Wang, Y. Exploring 3D Roadway Modeling Techniques Using CAD and Unity3D. Processes 2025, 13, 2399. https://doi.org/10.3390/pr13082399
Yang Y, Sun Y, Wang Y. Exploring 3D Roadway Modeling Techniques Using CAD and Unity3D. Processes. 2025; 13(8):2399. https://doi.org/10.3390/pr13082399
Chicago/Turabian StyleYang, Yingbing, Yunchuan Sun, and Yuhong Wang. 2025. "Exploring 3D Roadway Modeling Techniques Using CAD and Unity3D" Processes 13, no. 8: 2399. https://doi.org/10.3390/pr13082399
APA StyleYang, Y., Sun, Y., & Wang, Y. (2025). Exploring 3D Roadway Modeling Techniques Using CAD and Unity3D. Processes, 13(8), 2399. https://doi.org/10.3390/pr13082399