Other Classes¶
ProjectElement¶
Available elements are PointSet, LineSet, Surface, and Volume; Project are built with elements.
-
class
omf.base.
ProjectElement
(**kwargs)[source]¶ Base ProjectElement class for OMF file
ProjectElement subclasses must define their mesh. ProjectElements include PointSet, LineSet, Surface, and VolumeRequired Properties:
- color (
Color
): Solid color, a color, Default: random - description (
String
): Description, a unicode string - name (
String
): Title, a unicode string
Optional Properties:
- data (a list of
ProjectElementData
): Data defined on the element, a list (each item is an instance of ProjectElementData)
Other Properties:
- date_created (
GettableProperty
): Date project was created - date_modified (
GettableProperty
): Date project was modified - uid (
Uuid
): Unique identifier, a unique ID auto-generated with uuid.uuid4()
- color (
ProjectElement Data¶
-
class
omf.base.
ProjectElementData
(**kwargs)[source]¶ Data array with values at specific locations on the mesh
Required Properties:
- description (
String
): Description, a unicode string - location (
StringChoice
): Location of the data on mesh, any of “vertices”, “segments”, “faces”, “cells” - name (
String
): Title, a unicode string
Other Properties:
- date_created (
GettableProperty
): Date project was created - date_modified (
GettableProperty
): Date project was modified - uid (
Uuid
): Unique identifier, a unique ID auto-generated with uuid.uuid4()
- description (
Content Model¶
-
class
omf.base.
ContentModel
(**kwargs)[source]¶ ContentModel is a UidModel with title and description
Required Properties:
Other Properties:
- date_created (
GettableProperty
): Date project was created - date_modified (
GettableProperty
): Date project was modified - uid (
Uuid
): Unique identifier, a unique ID auto-generated with uuid.uuid4()
- date_created (
Uid Model¶
UidModel gives all content a name, description, and unique uid.
-
class
omf.base.
UidModel
(**kwargs)[source]¶ UidModel is a HasProperties object with uid
Other Properties:
- date_created (
GettableProperty
): Date project was created - date_modified (
GettableProperty
): Date project was modified - uid (
Uuid
): Unique identifier, a unique ID auto-generated with uuid.uuid4()
- date_created (