Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DXF generated by Autodesk Revit not displaying correctly #40

Closed
jdh-invicara opened this issue Apr 5, 2023 · 3 comments
Closed

DXF generated by Autodesk Revit not displaying correctly #40

jdh-invicara opened this issue Apr 5, 2023 · 3 comments

Comments

@jdh-invicara
Copy link
Contributor

When I open a 3D DXF file in the dxf-viewer I would expect to see a top-down view. This works as expected with output from Rhino.

Here's a 3D model generated from Rhino displayed in Autodesk DWG Trueview:

image

Here's the same model with camera orbited to look top-down:

image

And here's the same model when loaded into dxf-viewer-example:

image

However, when I open a DXF file generated from Autodesk Revit model's 3D view I get "extra lines drawn".

Here's a DXF output from a Revit model in Autodesk DWG Trueview (viewed top-down):

image

And here's the same model when loaded into dxf-viewer-example:

image

Here are the two DXF files - one from Rhino and one from Revit:

sampleDXFs3D.zip

@vagran
Copy link
Owner

vagran commented Apr 6, 2023

Thanks! Such kind of sample files are very valuable for the project.
I have figured out that the problematic file uses POLYLINE entity kind called "Polyface mesh", which proper support is not yet implemented. Will try to fix it soon.

vagran added a commit that referenced this issue Apr 6, 2023
@vagran
Copy link
Owner

vagran commented Apr 6, 2023

Fixed in v1.0.23. Demo page updated.

Note that wireframe rendering of meshes is controlled by sceneOptions.wireframeMesh options which was false on the demo page. I have set it true now which probably better suits common use cases. One day will make some control in UI for that. Without wireframe it is now rendered like this:

2023-04-06_11-52

@vagran vagran closed this as completed Apr 6, 2023
@jdh-invicara
Copy link
Contributor Author

Wow - fantastic! Thanks :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants