From 4fc648d5bd0170d188b35b9deb26eb917578fafc Mon Sep 17 00:00:00 2001 From: Timothy Spain Date: Wed, 24 Oct 2018 17:59:29 +0100 Subject: [PATCH] Nxquadric 1 (#627) * Add the NXquadric NXDL XML files NXDL description XML files for the three NXquadric and constructive solid geometry classes. * Create example data folder * Add an example NeXus file using NXquadric * Delete deleteme.txt Delete the dummy file * Delete sample_capillary.nxs * Add close tag and rename field Add the field close tag and rename the 'type' field to 'surface_type'. * Add missing '>' * Correct close tag --- contributed_definitions/NXcsg.nxdl.xml | 87 ++++++++++++++++++ contributed_definitions/NXquadric.nxdl.xml | 88 +++++++++++++++++++ .../NXsolid_geometry.nxdl.xml | 56 ++++++++++++ 3 files changed, 231 insertions(+) create mode 100644 contributed_definitions/NXcsg.nxdl.xml create mode 100644 contributed_definitions/NXquadric.nxdl.xml create mode 100644 contributed_definitions/NXsolid_geometry.nxdl.xml diff --git a/contributed_definitions/NXcsg.nxdl.xml b/contributed_definitions/NXcsg.nxdl.xml new file mode 100644 index 0000000000..d4984998e0 --- /dev/null +++ b/contributed_definitions/NXcsg.nxdl.xml @@ -0,0 +1,87 @@ + + + + + + constructive solid geometry NeXus class, using :ref:`NXquadric` + and :ref:`NXoff_geometry`. + + + + One of the standard construction solid geometry set operations, + or if the CSG is a pointer to the geometry provided by an + :ref:`NXquadric` or an :ref:`NXoff_geometry`. Takes values: + + + + + + + + + + + + + The first operand of constructive solid geometry + operation. Compulsory if 'operation' is UNION, INTERSECTION, + DIFFERENCE or COMPLEMENT. + + + + + The second operand of constructive solid geometry + operation. Compulsory if 'operation' is UNION, INTERSECTION or + DIFFERENCE. + + + + + Path to a field that is either an :ref:`NXquadric` (if + 'operation' = IS_QUADRIC) or an :ref:`NXoff_geometry` (if + 'operation' = IS_MESH) that defines the surface making up the + constructive solid geometry component. Compulsory if 'operation' + is IS_QUADRIC or IS_MESH. + + + diff --git a/contributed_definitions/NXquadric.nxdl.xml b/contributed_definitions/NXquadric.nxdl.xml new file mode 100644 index 0000000000..1cda4c1b94 --- /dev/null +++ b/contributed_definitions/NXquadric.nxdl.xml @@ -0,0 +1,88 @@ + + + + + definition of a quadric surface. + + + Ten real values of the matrix that defines the quadric surface + in projective space. Ordered Q11, Q12, Q13, Q22, Q23, Q33, P1, + P2, P3, R. Takes a units attribute of dimension reciprocal + length. R is scalar. P has dimension reciprocal length, and the + given units. Q has dimension reciprocal length squared, and + units the square of those given. + + + + + + + + An optional description of the form of the quadric surface: + + + + + + + + + + + + + + + + + + + + + + + + + + Path to an :ref:`NXtransformations` that defining the axis on + which the orientation of the surface depends. + + + diff --git a/contributed_definitions/NXsolid_geometry.nxdl.xml b/contributed_definitions/NXsolid_geometry.nxdl.xml new file mode 100644 index 0000000000..79007afaba --- /dev/null +++ b/contributed_definitions/NXsolid_geometry.nxdl.xml @@ -0,0 +1,56 @@ + + + + + + the head node for constructively defined geometry + + + + Instances of :ref:`NXquadric` making up elements of the geometry. + + + + + Instances of :ref:`NXoff_geometry` making up elements of the geometry. + + + + + The geometries defined, made up of instnances of :ref:`NXquadric` and :ref:`NXoff_geometry`. + + +