Hi everyone,
I’m currently working on a project where I need to convert a 2D floor plan from a DXF file into a 3D model in Unity. I’m using the IxMilia.Dxf Library to read the data from the DXF file, and I can successfully extract the 2D information, which gives me the layout of the floor plan.
Here’s what I have so far:
- I can read the 2D shapes from the DXF file.
- The shapes are represented correctly in a 2D plane within Unity.
The Challenge:
While I can visualize the floor plan in 2D, I’m struggling to generate the corresponding 3D models based on the extracted data. For example:
- When I extract a room that should be represented as a cube (with front, back, top, bottom, left, and right faces), I’m able to see the 2D representation. However, I don’t know how to convert this data into a 3D cube in Unity properly.
- I need assistance with understanding how to map the 2D coordinates and dimensions to create 3D geometry in Unity.
Specific Questions:
- How can I translate the 2D data from the DXF file to create a 3D representation in Unity?
- What is the best way to handle the dimensions and scaling when converting 2D shapes to 3D objects?
- Are there any resources, scripts, or examples that could help me understand this conversion process better?
Any guidance or suggestions would be greatly appreciated. Thank you!