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

Viewer.setDisplayEdges(true) not working #28

Open
akkys77 opened this issue Feb 28, 2019 · 1 comment · May be fixed by #29
Open

Viewer.setDisplayEdges(true) not working #28

akkys77 opened this issue Feb 28, 2019 · 1 comment · May be fixed by #29

Comments

@akkys77
Copy link

akkys77 commented Feb 28, 2019

Hello,

I can get the demo running, but it does not display the edges of my models.
When I use the chrome console to do the equivalent of going to Settings -> Performance -> Display Edges on a non headless viewer: NOP_VIEWER.setDisplayEdges(true) , nothing happens.

The edges are not displayed nor do I get any error message.

When I try the same command in chrome console at https://viewer.autodesk.com with the same model loaded, it works and I can toggle the display of edges by changing the boolean parameter from true to false.

Can you please tell me how I can get the edges displaying on the viewer-react-express-headless.

Thank you for time.

@akkys77
Copy link
Author

akkys77 commented Mar 1, 2019

Me again, after posting on stackoverflow I was given a solution.

It was basically replacing viewer.load by `viewer.loadModel(urn,{isAEC:true}).

I think I saw that viewer.load was deprecated in favour of viewer.loadModel but not sure about it. In any case on my side the issue can be considered as closed. In the coming days I will make a pull request with my fix suggestion.

@akkys77 akkys77 linked a pull request Mar 4, 2019 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant