LineSet

Transfer mapped geological contacts from a GIS software package into a 3D modelling software package to help construct a 3D model.

../_images/LineSet.png

Element

class omf.lineset.LineSetElement(**kwargs)[source]

Contains mesh, data, and options of a line set

Required Properties:

  • color (Color): Solid color, a color, Default: random
  • description (String): Description, a unicode string
  • geometry (LineSetGeometry): Structure of the line element, an instance of LineSetGeometry
  • name (String): Title, a unicode string
  • subtype (StringChoice): Category of LineSet, either “line” or “borehole”, Default: line

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()

Geometry

../_images/LineSetGeometry.png
class omf.lineset.LineSetGeometry(**kwargs)[source]

Contains spatial information of a line set

Required Properties:

  • origin (Vector3): Origin of the Mesh relative to origin of the Project, a 3D Vector of <type ‘float’> with shape (3), Default: [0.0, 0.0, 0.0]
  • segments (Int2Array): Endpoint vertex indices of line segments, an instance of Int2Array
  • vertices (Vector3Array): Spatial coordinates of line vertices relative to line set origin, an instance of Vector3Array

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()

Data

Data is a list of data. For Lines, location='vertices' and location='segments' are valid.