Skip to content

Add configurable naming/grouping for OBJ export - #24

Merged
valentin-gauthier-geosiris merged 2 commits into
mainfrom
obj-export-naming-grouping
Sep 17, 2026
Merged

valentin-gauthier-geosiris merged 2 commits into
mainfrom
obj-export-naming-grouping

Conversation

@valentin-gauthier-geosiris

Copy link
Copy Markdown
Collaborator

export_obj/export_mesh gain object_namer/group_namer/group_by callbacks controlling the o/g lines, so callers can name exports after e.g. the source object's Citation title instead of its URI, and merge several representations into one OBJ file with distinguishable o blocks (grouped by source object or by RESQML/EML qualified type).

All new parameters default to None and reproduce the exact previous mapping when unused (FormatSpec.supports_naming gates them so other formats are unaffected). Keys off patch.energyml_object rather than patch.identifier/source_uuid, since the legacy AbstractMesh has neither field and suffixes identifier with "_patch{n}", which would otherwise split a multi-patch representation into one group per patch.

export_obj/export_mesh gain object_namer/group_namer/group_by
callbacks controlling the `o`/`g` lines, so callers can name exports
after e.g. the source object's Citation title instead of its URI, and
merge several representations into one OBJ file with distinguishable
`o` blocks (grouped by source object or by RESQML/EML qualified type).

All new parameters default to None and reproduce the exact previous
mapping when unused (FormatSpec.supports_naming gates them so other
formats are unaffected). Keys off patch.energyml_object rather than
patch.identifier/source_uuid, since the legacy AbstractMesh has
neither field and suffixes identifier with "_patch{n}", which would
otherwise split a multi-patch representation into one group per patch.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@valentin-gauthier-geosiris
valentin-gauthier-geosiris merged commit 793e96c into main Sep 17, 2026
3 checks passed
@valentin-gauthier-geosiris
valentin-gauthier-geosiris deleted the obj-export-naming-grouping branch September 17, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant