spatial-dyn
Public Types | Public Attributes | List of all members
spatial_dyn::Graphics::Geometry Struct Reference

#include <graphics.h>

Public Types

enum class  Type {
  kUndefined , kBox , kCapsule , kCylinder ,
  kSphere , kMesh
}
 

Public Attributes

Type type = Type::kUndefined
 
Eigen::Vector3d scale = Eigen::Vector3d::Ones()
 
double radius = 0
 
double length = 0
 
std::string mesh
 

Detailed Description

Graphics geometry struct.

See also
Python: spatialdyn.Graphics.Geometry

Member Enumeration Documentation

◆ Type

Geometry types.

Enumerator
kUndefined 

Undefined.

kBox 

Box.

kCapsule 

Capsule.

kCylinder 

Cylinder.

kSphere 

Sphere.

kMesh 

Mesh.

Member Data Documentation

◆ length

double spatial_dyn::Graphics::Geometry::length = 0

◆ mesh

std::string spatial_dyn::Graphics::Geometry::mesh

Type::kMesh filename.

◆ radius

double spatial_dyn::Graphics::Geometry::radius = 0

◆ scale

Eigen::Vector3d spatial_dyn::Graphics::Geometry::scale = Eigen::Vector3d::Ones()

Type::kBox size or Type::kMesh scale.

◆ type

Type spatial_dyn::Graphics::Geometry::type = Type::kUndefined

Geometry type.


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