Skip to content

2022.2.0

Compare
Choose a tag to compare
@marcomusy marcomusy released this 05 Apr 21:47
· 1121 commits to master since this release

Main changes

  • New documentation pages based on pdoc3.
  • general cleanup of the examples
  • simplified licence file by splitting fonts and general MIT licence
  • all vedo/texture/* files removed
  • a new syntax is allowed for changing the current renderer:
    plotter.at(ren_number).show(mymesh)
    instead of the (still valid):
    plotter.show(mymesh, at=ren_number)
  • reverted settings to be a simple import instead of a dictionary (because of pdoc3).

pointcloud.py

  • cmap(arrayName=...) -> cmap(name=...)
  • added chamferDistance() of pointclouds (needs to be double checked)
  • added cutWithMesh(self, keep=True) to return an Assembly of the cut & discarded parts.

mesh.py

  • can now recover the edges of a mesh with mymesh.edges()
  • added tetralize() to tetralize any closed surface mesh

plotter.py

  • keyword change show(interactorStyle=...) -> show(mode=...)
  • added function vedo.close() to close the latest Plotter

picture.py

  • remove by default alpha channel so that images become pickable

pyplot.py

  • Full revision of the existing code.
  • can now create an empty Figure object to be later filled.

With it one can easily create elegant plots and histograms like:

Screenshot from 2022-04-05 22-01-50


shapes.py

  • added Rectangle(radius=...) to have a border radius

tetmesh.py

  • added tetralize() to tetralize any closed surface mesh
  • added addQuality() of tets

settings.py

  • new polygonal fonts added: 'Vogue', 'Brachium', 'Dalim', 'Miro', 'Ubuntu'

Examples:

New/Revised

  • examples/basic/mousehover2.py
  • examples/simulations/wave_equation2d.py
  • examples/advanced/interpolateScalar4.py
  • examples/advanced/timer_callback1.py
  • examples/basic/multirenderers.py
  • examples/advanced/spline_draw.py
  • examples/simulations/museum_problem.py
  • examples/volumetric/tet_explode.py
  • examples/volumetric/tetralize_surface.py
  • examples/other/remesh_tetgen.py
  • examples/pyplot/histo_1d_a.py
  • examples/pyplot/histo_1d_b.py
  • examples/pyplot/histo_1d_c.py
  • examples/pyplot/histo_1d_d.py
  • examples/pyplot/histo_2d.py
  • examples/pyplot/histo_pca.py
  • examples/pyplot/histo_manual.py
  • tests/common/test_pyplot.py
  • examples/pyplot/plot_empty.py
  • examples/pyplot/plot_errband.py
  • examples/pyplot/quiver.py

Deleted

  • examples/pyplot/covid19.py
  • examples/pyplot/histo_1D.py
  • examples/pyplot/histo_2D.py
  • moving_least_squares3D.py
  • examples/other/dolfin/curl2d.py
  • examples/other/dolfin/demo_auto-adaptive-poisson.py
  • examples/other/dolfin/demo_cahn-hilliard.py
  • examples/other/dolfin/ex01_show-mesh.py
  • examples/other/dolfin/ft07_navier_stokes_channel.py
  • examples/other/dolfin/ft08_navier_stokes_cylinder.py
  • examples/other/dolfin/meshEditor.py
  • examples/other/dolfin/simple1Dplot.py