Hello,
there is vrml export for FreeCAD. Shouldn't it be easy to also writing an x3d exporter?
In my opinion the webgl support would be easier with it by using x3dom instead of three.js?
regards
X3D export/conversion
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
Re: X3D export/conversion
PythonOCC can export x3d. Why isn't it possible with FreeCAD which is also based on OCE?
Is it possible to do it via the python api?
Is it possible to do it via the python api?
Re: X3D export/conversion
Its a feature of pythonOCC and not of OCEzoidberg wrote:Why isn't it possible with FreeCAD which is also based on OCE?
https://github.com/tpaviot/pythonocc-co ... r.cpp#L345
Re: X3D export/conversion
x3d is an add-on of pythonOCC: https://github.com/tpaviot/pythonocc-co ... elator.cpp
But nevertheless, you can also write to an x3d with FreeCAD. Simply create a mesh from a shape and use the extended mesh export function of the Mesh workbench. There you can select x3d as output format.
But nevertheless, you can also write to an x3d with FreeCAD. Simply create a mesh from a shape and use the extended mesh export function of the Mesh workbench. There you can select x3d as output format.
Re: X3D export/conversion
yes the mesh generator will help me. I'll write my own exporter with it. Thanks! FreeCAD is awesome.
Re: X3D export/conversion
color information is lost when using the mesh generator? Is there a way to get the color information? The model is only one part imported from step but with different colors.
Re: X3D export/conversion
Yes, but to judge by the code this also happens with pythonOCC.zoidberg wrote:color information is lost when using the mesh generator? Is there a way to get the color information? The model is only one part imported from step but with different colors.