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

Showing lines on the edges #13

Open
mbalajee opened this issue May 14, 2024 · 4 comments
Open

Showing lines on the edges #13

mbalajee opened this issue May 14, 2024 · 4 comments

Comments

@mbalajee
Copy link

mbalajee commented May 14, 2024

Is there a command line option currently (or in the roadmap) to show lines (like wireframe) on the edges of a geometry when converting from IFC to GLB format. Something like this - in the below image (rendered using HOOPS visualize viewer) there are lines on the edges,

@ifcapps
Copy link
Collaborator

ifcapps commented May 14, 2024

Rendering lines at crease edges is normally done by the viewer.
In this case, it is a feature of the xeokit viewer.
It wouldn't make sense to write those lines into the glb file.
Unless you want to use the glb file for something else?

@mbalajee
Copy link
Author

Thanks for quick response.

We convert IFC to GLB on our backend using this converter and the converted GLB file is then rendered on mobile (Filament for Android, SceneKit for iOS). These lines on the edges help our customers since a lot of the work we’re focusing on is specific to the individual objects of the model.

@ifcapps
Copy link
Collaborator

ifcapps commented May 14, 2024

Ok. If you prefer to compute those edges not in the viewer, but server side, we can integrate that as an option in the ifc2gltf converter.
But that option will have to be ordered through Creoox. If you are interested, please contact Creoox sales on creoox.com

@xeolabs
Copy link
Collaborator

xeolabs commented May 14, 2024

Just a note that convert2xkt automatically creates edges for triangles meshes in the XKT files, that it converts from the GLB output by ifc2gltf.

Then the xeokit Viewer has the option to draw those edges on the triangle meshes when we set the Viewer's edges flag to true.

The algorithm that convert2xkt uses is to create, in the XKT file's geometry, a line segment between each pair of adjacent triangles that are not co-planar, with a tolerance of a few degrees.

All our XKT models have such edges, and the Viewer shows them by default, like in this example.

So the convert2xkt tool is pre-calculating the edges in XKT files.

But the Viewer will also calculate the edges itself, when we load GLB/glTF directy into the Viewer, and when we programmatically create scene objects in the Viewer ourselves using the JavaScript API.

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

3 participants