Mesh Oriented datABase  (version 5.5.0)
An array-based unstructured mesh library
vertex Struct Reference

#include <ReadOBJ.hpp>

Public Attributes

int vertex_id
double coord [3]

Detailed Description

MOAB, a Mesh-Oriented datABase, is a software component for creating, storing and accessing finite element mesh data.

Copyright 2004 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This class will read in an obj file and populate a MOAB instance with the vertex and connectivity information in the file. A specification for obj files can be found here: This reader only supports a subset of the full file structure, namely, object names, group names, vertices, and faces.

Overview of the supported structure:

Heading Object line: o object_name Group line: g group_name1 Vertex lines: v x y z Face lines (tri): f v1 v2 v3 Face lines (quad): f v1 v2 v3 v4

Lines that begin w/ anything other than 'o ', 'g ', 'v ', and 'f ' are not supported. If a valid, but unsupported line is found, it will be ignored. If an invalid line is found, an error will be produced. Face lines that contain 'vertex\texture\normal' are handled by ignoring the texture and normal

A new meshset will be created for each object or group in the file. Each object and group must have a name, or the line will be ignored. Groups are thought to be collections of elements with no dimension or category and will therefore only be assigned name and id tags. Objects are thought to be closed surfaces. A surface meshset will be created for each object. A volume meshset that directly corresponds to the surface meshset will also be created. These will have name, id, categorty, and dimension tags. A parent-child relationship exists between the volume and surface meshsets. Vertices will be created and added to a global vertex meshset. Triangular faces will be created and added as members of the surface meshets.

Definition at line 87 of file ReadOBJ.hpp.

Member Data Documentation

◆ coord

double vertex::coord[3]

Definition at line 90 of file ReadOBJ.hpp.

Referenced by moab::ReadOBJ::create_new_vertex().

◆ vertex_id

int vertex::vertex_id

Definition at line 89 of file ReadOBJ.hpp.

The documentation for this struct was generated from the following file: