compas
compas copied to clipboard
unify meshplotter within geometryplotter (artist) framework
Designers often need to simultaneously visualise stand-alone geometries with COMPAS datastructures like Meshes or Networks (e.g. seeing the results of trimesh_pull_points). Would be great to bring the older plotter setup under the newer geometry artist framework, so that the workflow for developers can be simplified into something closer to...
plotter = GeometryPlotter() plotter.add(mesh) plotter.add(lines) plotter.show()
As a quick fix, even some mesh_plot_instance.to_geometry_artists() would be helpful.
it is indeed the goal to allow all types of COMPAS objects to be added to plots in the style supported by the geometry plotter. in the meantime, can you not use the methods draw_points
, draw_lines
, draw_...
of the MeshPlotter
?
yes, I can, which brings me to a suggestion I have forgotten to include in my last comment: "'it would also be helpful, as a quick interim fix, to introduce some methods like geom_artist.to_plotter_dict()
"
The preference for geometry plotter is due to its ability to handle styles in a model-scale-invariant way... (see figure) top row: mesh plotter bottom row: geom plotter left col: scale factor 1 right col: scale factor 3
@tomvanmele || @gonzalocasas bump
I think this should be closed, the plotters don't exist anymore
re-open if i'm wrong though :)