Open ansJBoly opened 9 months ago
Seems to me like it is an issue on the side of the viewer, right? Have you tried opening the SCDOCX file with a common product such as Ansys Discovery or SpaceClaim on your local, and check the differences?
Pinging @b-matteo and @jonahrb for visibility
Seems to me like it is an issue on the side of the viewer, right? Have you tried opening the SCDOCX file with a common product such as Ansys Discovery or SpaceClaim on your local, and check the differences?
Yes, I tried opening the SCDCOX file with spaceclaim.
What I see when I open the scdocx file generated with geometry service
What I see when I open the scdocx file generated with spaceclaim
Is the difference in the license used?
They seem to be exactly the same to me... Geometry Service and Discovery use the same license.
Have you tried opening the SCDOCX from the Geometry Service with Ansys Discovery?
My point in all this is that the SCDOCX that comes out seems to be the same... Might be an issue on the way you are reading the file on your SAF app?
@RobPasMue SAF app is not reading any scdocx file and has no way to read a scdocx. In Ansys, we have an AVZ viewer that is used by some of our customers to visualize and manipulate the geometries on web-client app. What we are reporting here is that depending on whether this geometry is generated directly from SpaceClaim 24R1 or the geometry service (docker container) the scdoc file is readable or not by the viewer.
Can't you use PyVista directly from your app? You can ask for a plot and represent it in your application. That way you get the tesselated object
@RobPasMue using PyVista in our use case is not an option.
I'll leave it up to @b-matteo in that case but I don't see an easy solution really... and it doesn't seem to be an issue with the PyAnsys Geometry library
I do not believe it has anything to do with the pygeometry layer. I'll take it with @b-matteo
@RobPasMue, @asbfall i spoke with my team, the difference comes from the lightweight format we chose for the geometry service, more fit for a remote usage. Lightweight means that all the geometrical information are in there, but not the preview ones. I can plan to add an option to the ApiServer download method to be able to ask for a complete file DL. That will imply some work on the GeometryService itself too.
š Before submitting the issue
š Description of the bug
In my saf-solution (using pydiscovery), I generate a scdocx file with the spaceclaim software and I can visualize it with a viewer on my saf-based solution UI. Now, I would like to use pygeometry and geometry service to create a scdocx file instead of using pydiscovery and spaceclaim. I succeeded to do that but the scdocx generated by the geometry service is not visualized by the viewer. So I compared two scdocx files: one generated by spaceclaim and the second generated by the geometry service. They are not the same. For example, the size of the one generated by spaceclaim is almost 3 times larger than the one generated by geometry service.
Please, So I need the scdocx generated by geometry service to be identical to the one generated by spaceclaim.
š Steps to reproduce
š» Which operating system are you using?
Windows
š Which ANSYS version are you using?
Spaceclaim 24.1 Pyegometry 0.4.dev0
š Which Python version are you using?
3.10
š¦ Installed packages