2.3.3.1.49. NXshape

Status:

base class, extends NXobject

Description:

legacy class - (used by :ref:`NXgeometry`) - the shape and size of a component. ...

legacy class - (used by NXgeometry) - the shape and size of a component.

This is the description of the general shape and size of a component, which may be made up of numobj separate elements - it is used by the NXgeometry class

Symbols:

No symbol table

Groups cited:

none

Structure:

@default: (optional) NX_CHAR

Declares which child group contains a path leading ...

Declares which child group contains a path leading to a NXdata group.

It is recommended (as of NIAC2014) to use this attribute to help define the path to the default dataset to be plotted. See https://www.nexusformat.org/2014_How_to_find_default_data.html for a summary of the discussion.

shape: (optional) NX_CHAR

general shape of a component ...

general shape of a component

Any of these values:

  • nxflat

  • nxcylinder

  • nxbox

  • nxsphere

  • nxcone

  • nxelliptical

  • nxtoroidal

  • nxparabolic

  • nxpolynomial

size: (optional) NX_FLOAT (Rank: 2, Dimensions: [numobj, nshapepar]) {units=NX_LENGTH}

physical extent of the object along its local axes (after NXorientation) ...

physical extent of the object along its local axes (after NXorientation) with the center of mass at the local origin (after NXtranslation). The meaning and location of these axes will vary according to the value of the “shape” variable. nshapepar defines how many parameters:

  • For “nxcylinder” type the parameters are (diameter,height) and a three value orientation vector of the cylinder.

  • For the “nxbox” type the parameters are (length,width,height).

  • For the “nxsphere” type the parameters are (diameter).

  • For nxcone cone half aperture

  • For nxelliptical, semi-major axis, semi-minor-axis, angle of major axis and pole

  • For nxtoroidal, major radius, minor radius

  • For nxparabolic, parabolic parameter a

  • For nxpolynomial, an array of polynom coefficients, the dimension of the array encodes the degree of the polynom

direction: (optional) NX_CHAR

Any of these values: concave | convex

Hypertext Anchors

List of hypertext anchors for all groups, fields, attributes, and links defined in this class.

NXDL Source:

https://github.com/FAIRmat-NFDI/nexus_definitions/tree/fairmat/base_classes/NXshape.nxdl.xml