template <class T>
class vtb::obj::Object

OBJ importer/exporter.

  • Supports reading/writing vertices, faces and vertex normals.
  • Supports relative vertex positions (negative face indices).
  • Ignores textures, lines and MTL files.
  • Thin wrapper around vtb::geometry::Polyhedron.

Types
  • using index_type = typename face_type::value_type
  • using face_type = typename face_array::value_type
  • using face_array = typename polyhedron_type::face_array
  • using vertex_array = typename polyhedron_type::vertex_array
  • using polyhedron_type = vtb::geometry::Polyhedron< T >
Methods
template <class T>
operator>>(std::istream & in, Object< T > & rhs) -> std::istream &
template <class T>
operator<<(std::ostream & out, const Object< T > & rhs) -> std::ostream &