Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revisiting non-FAIRmat constructive solid geometry in light of FAIRmat proposal #1532

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

mkuehbach
Copy link
Contributor

Issues #1529, #1530, and #1531 discuss that NeXus provides classes for constructive solid geometry.

Despite their existence they have not been used much. Therefore, it was proposed to deprecate them.

However, their design is solid and having the possibility for defining CSG is useful. Therefore, I suggest to
keep them in this slightly edited style.

Going further, I propose here also to promote them to base classes as they have been sitting in contributed
too long but there is no other substantiated argument as to why these are so poor to stay in contributed
forever.

In discussion with @PeterC-DLS we thought that the FAIRmat proposal via #1421 introduces a wider set of
base classes that has been designed with offering a potentially easier entry point for people not everyday
dealing with computational geometry. As #1421 extends NXoff_geometry by dedicated base classes with
more fields it makes sense to allow that some of these base classes, like NXcg_polyhedron, NXcg_tetrahedron,
could be leaf nodes of CSG constructions, therefore I edited the docstrings for the elements of the CSG tree.

I propose to merge these changes via one PR and this issue. Consequently, I propose to close #1529 and #1530
via comment pointing to #1531 here.

@@ -30,13 +30,13 @@
xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd"
>
<doc>
Constructive Solid Geometry base class, using :ref:`NXquadric` and :ref:`NXoff_geometry`</doc>
Constructive Solid Geometry base class</doc>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

State it combines the definition of leaf and branching nodes of a csg tree.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implemented

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.

NXsolid_geometry
3 participants