Open3D (C++ API)  0.18.0+5c982c7
Public Member Functions | Static Public Member Functions | Data Fields
open3d::io::rpc::messages::MeshData Struct Reference

struct for storing MeshData, e.g., PointClouds, TriangleMesh, .. More...

#include <Messages.h>

Public Member Functions

void SetO3DTypeToPointCloud ()
 
void SetO3DTypeToLineSet ()
 
void SetO3DTypeToTriangleMesh ()
 
bool O3DTypeIsPointCloud () const
 
bool O3DTypeIsLineSet () const
 
bool O3DTypeIsTriangleMesh () const
 
bool CheckVertices (std::string &errstr) const
 
bool CheckFaces (std::string &errstr) const
 
bool CheckO3DType (std::string &errstr) const
 
bool CheckMessage (std::string &errstr) const
 
 MSGPACK_DEFINE_MAP (o3d_type, vertices, vertex_attributes, faces, face_attributes, lines, line_attributes, material, material_scalar_attributes, material_vector_attributes, texture_maps)
 

Static Public Member Functions

static std::string MsgId ()
 

Data Fields

std::string o3d_type
 
Array vertices
 shape must be [num_verts,3] More...
 
std::map< std::string, Arrayvertex_attributes
 
Array faces
 
std::map< std::string, Arrayface_attributes
 stores arbitrary attributes for each face More...
 
Array lines
 
std::map< std::string, Arrayline_attributes
 stores arbitrary attributes for each line More...
 
std::string material = ""
 Material for DrawableGeometry. More...
 
std::map< std::string, float > material_scalar_attributes
 Material scalar properties. More...
 
std::map< std::string, std::array< float, 4 > > material_vector_attributes
 Material vector[4] properties. More...
 
std::map< std::string, Arraytexture_maps
 map of arrays that can be interpreted as textures More...
 

Detailed Description

struct for storing MeshData, e.g., PointClouds, TriangleMesh, ..

Member Function Documentation

◆ CheckFaces()

bool open3d::io::rpc::messages::MeshData::CheckFaces ( std::string &  errstr) const
inline

◆ CheckMessage()

bool open3d::io::rpc::messages::MeshData::CheckMessage ( std::string &  errstr) const
inline

◆ CheckO3DType()

bool open3d::io::rpc::messages::MeshData::CheckO3DType ( std::string &  errstr) const
inline

◆ CheckVertices()

bool open3d::io::rpc::messages::MeshData::CheckVertices ( std::string &  errstr) const
inline

◆ MsgId()

static std::string open3d::io::rpc::messages::MeshData::MsgId ( )
inlinestatic

◆ MSGPACK_DEFINE_MAP()

open3d::io::rpc::messages::MeshData::MSGPACK_DEFINE_MAP ( o3d_type  ,
vertices  ,
vertex_attributes  ,
faces  ,
face_attributes  ,
lines  ,
line_attributes  ,
material  ,
material_scalar_attributes  ,
material_vector_attributes  ,
texture_maps   
)

◆ O3DTypeIsLineSet()

bool open3d::io::rpc::messages::MeshData::O3DTypeIsLineSet ( ) const
inline

◆ O3DTypeIsPointCloud()

bool open3d::io::rpc::messages::MeshData::O3DTypeIsPointCloud ( ) const
inline

◆ O3DTypeIsTriangleMesh()

bool open3d::io::rpc::messages::MeshData::O3DTypeIsTriangleMesh ( ) const
inline

◆ SetO3DTypeToLineSet()

void open3d::io::rpc::messages::MeshData::SetO3DTypeToLineSet ( )
inline

◆ SetO3DTypeToPointCloud()

void open3d::io::rpc::messages::MeshData::SetO3DTypeToPointCloud ( )
inline

◆ SetO3DTypeToTriangleMesh()

void open3d::io::rpc::messages::MeshData::SetO3DTypeToTriangleMesh ( )
inline

Field Documentation

◆ face_attributes

std::map<std::string, Array> open3d::io::rpc::messages::MeshData::face_attributes

stores arbitrary attributes for each face

◆ faces

Array open3d::io::rpc::messages::MeshData::faces

This array stores vertex indices to define faces. The array can be of rank 1 or 2. An array of rank 2 with shape [num_faces,n] defines num_faces n-gons. If the rank of the array is 1 then polys of different lengths are stored sequentially. Each polygon is stored as a sequence 'n i1 i2 ... in' with n>=3. The type of the array must be int32_t or int64_t

◆ line_attributes

std::map<std::string, Array> open3d::io::rpc::messages::MeshData::line_attributes

stores arbitrary attributes for each line

◆ lines

Array open3d::io::rpc::messages::MeshData::lines

This array stores vertex indices to define lines. The array can be of rank 1 or 2. An array of rank 2 with shape [num_lines,n] defines num_lines linestrips with n vertices. If the rank of the array is 1 then linestrips with different number of vertices are stored sequentially. Each linestrip is stored as a sequence 'n i1 i2 ... in' with n>=2. The type of the array must be int32_t or int64_t

◆ material

std::string open3d::io::rpc::messages::MeshData::material = ""

Material for DrawableGeometry.

◆ material_scalar_attributes

std::map<std::string, float> open3d::io::rpc::messages::MeshData::material_scalar_attributes

Material scalar properties.

◆ material_vector_attributes

std::map<std::string, std::array<float, 4> > open3d::io::rpc::messages::MeshData::material_vector_attributes

Material vector[4] properties.

◆ o3d_type

std::string open3d::io::rpc::messages::MeshData::o3d_type

The original Open3D geometry type from which the MeshData object has been created. This is one of "PointCloud", "LineSet", "TriangleMesh". If this field is empty Open3D will infer the type based on the presence of lines and faces.

◆ texture_maps

std::map<std::string, Array> open3d::io::rpc::messages::MeshData::texture_maps

map of arrays that can be interpreted as textures

◆ vertex_attributes

std::map<std::string, Array> open3d::io::rpc::messages::MeshData::vertex_attributes

stores arbitrary attributes for each vertex, hence the first dim must be num_verts

◆ vertices

Array open3d::io::rpc::messages::MeshData::vertices

shape must be [num_verts,3]


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