Commit Graph
2 Commits
Author SHA1 Message Date
Stefan Crooijmans 467ef95d78 #12460 Python: Keep triangulated surface files apart and keep unsaved changes on reload
Review follow-up for #15127:

- Write the surface file to <project>_surfaces/<name>_<file id>.ts. The file
  id is created once per surface and renewed on copy, so names that sanitize
  to the same string, user files of the same name and a project saved under
  another name in the same folder no longer overwrite each other.
- Track changes since the last save, and keep the in-memory data on reload
  until it has been written.
- Reject property names that are empty or contain whitespace, as the GOCAD
  TSurf file separates names by spaces.
- set_property raises when there is no parent project, like the other calls.
- Null check before the assert in setProperty, fix the triangleIndices typo.
2026-11-09 19:48:06 +01:00
Stefan Crooijmans 31f79f426f #12460 Python: Add triangulated surface created from Python
Add TriangulatedSurface with set_geometry, set_property, get_property
and available_properties, created by
SurfaceCollection.new_triangulated_surface. When the project is saved,
the surface is written as a GOCAD TSurf file next to the project file
and read back from that file when the project is opened.
2026-11-09 19:48:06 +01:00