-
Hi, Furthermore, is there a summary print option to get information of the current facet resolution? I am not sure, if the polydata generated by the Graphics display is the exact representation of the facets, if no mesh is displayed. Can someone confirm on this, if this is the case? The only way I found for now to summarize the resolution of the facet meshes is by using the following lines of code: display = Graphics(model=model)
display()
number_of_cells = 0
for mesh in display.get_face_mesh_data():
number_of_cells += mesh.poly_data.GetNumberOfCells()
print(f"number_of_cells = {number_of_cells}") This is very slow, because I first have to wait for the display and cancel it in order to get access to the poly_data cells. I try to import Rhino models and tried refaceting with ACIS and PARASOLID using COARSE, MEDIUM, FINE and CUSTOM. PARASOLID generates always facet meshes with at least one order less cells than ACIS. Has anybody an explanation for it? With PARASOLID it seems that I cannot change the facet resolution at all. import_params = prime.ImportCadParams(
model=model,
length_unit=prime.LengthUnit.MM,
part_creation_type=prime.PartCreationType.MODEL,
cad_reader_route=prime.CadReaderRoute.PROGRAMCONTROLLED,
geometry_transfer=False, refacet=True,
cad_refaceting_params=prime.CadRefacetingParams(model=model, cad_faceter=prime.CadFaceter.PARASOLID,
faceting_resolution=prime.CadRefacetingResolution.CUSTOM,
custom_surface_deviation_tolerance=0.1,
custom_normal_angle_tolerance=1)) Using ACIS produced a very fine facet mesh. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi everyone, Now, I tried a simplified model in different file formats with the two cad_faceter ACIS and PARASOLID. There must be a bug with the combination Rhino files and PARASOLID. Refaceting with *.x_t and PARASOLID works as expected. Refaceting with *.3dm and PARASOLID does not change anything. Therefore, I create a bug report for this issue and upload the simplified model there. Nevertheless, has anyone an answer to the faceting summary question I described above? |
Beta Was this translation helpful? Give feedback.
-
Hi @dkowollik, Cad refaceting is only available during import. The graphics display does represent the faceting if the topo faces are displayed without mesh. If you are only checking the facet count you should see this reported in the logs during import. If you require more information you can convert the faceted geometry to a mesh and then use any of the summarisation routines on the faceting. However, this does delete the topology and you would need to import the cad again to continue. For example:
I confirm I can see an issue with the Parasolid faceting for rhino files. I will update the issue accordingly. Thanks |
Beta Was this translation helpful? Give feedback.
Hi @dkowollik,
Cad refaceting is only available during import.
The graphics display does represent the faceting if the topo faces are displayed without mesh.
If you are only checking the facet count you should see this reported in the logs during import.
If you require more information you can convert the faceted geometry to a mesh and then use any of the summarisation routines on the faceting. However, this does delete the topology and you would need to import the cad again to continue.
For example:
I confirm …