API Reference

The API reference details all classes, methods, and their functions:

Voxel

class Voxel

Public Functions

Voxel(int x, int y, int z, pybind11::object data = pybind11::int_(1))
pybind11::object getData() const
void setData(pybind11::object value)

Public Members

int x
int y
int z
pybind11::object data

VoxelGrid

VoxelForge.VoxelGrid

alias of VoxelGridWrapper

class VoxelForge.core.VoxelGridWrapper(*args: Any, **kwargs: Any)[source]
toTorch(xDim, yDim, zDim)[source]
toTorchGraph(xDim, yDim, zDim, neighboring_radius=1.0)[source]
class VoxelGrid

Public Functions

VoxelGrid()
void addVoxel(int x, int y, int z, pybind11::object data = pybind11::int_(1))
std::vector<std::tuple<int, int, int>> toList() const
std::pair<std::vector<std::vector<float>>, std::vector<std::pair<int, int>>> toGraph(int xDim, int yDim, int zDim, float neighboring_radius = 1.0)

Public Members

std::vector<Voxel> voxels

Octree

class Octree

Public Functions

Octree(const Eigen::Vector3d &origin, double size, size_t max_depth)
void InsertPoint(const Eigen::Vector3d &point)
std::shared_ptr<OctreeLeafNode> LocateLeafNode(const Eigen::Vector3d &point) const
std::string ToBitString() const
std::string ToJson(int indent = 0) const
class OctreeLeafNode : public OctreeNode

Public Functions

OctreeLeafNode(const Eigen::Vector3d &point)
virtual bool IsLeaf() const override
const Eigen::Vector3d &GetPoint() const
virtual std::string ToJson(int indent = 0) const override
virtual std::string ToBitString() const override
class OctreeInternalNode : public OctreeNode

Public Functions

OctreeInternalNode()
inline virtual bool IsLeaf() const override
std::shared_ptr<OctreeNode> GetChild(size_t index) const
const std::vector<std::shared_ptr<OctreeNode>> &GetChildren() const
size_t GetChildIndex(const Eigen::Vector3d &point, const Eigen::Vector3d &origin, double size) const
void SetChild(size_t index, std::shared_ptr<OctreeNode> child)
virtual std::string ToBitString() const override
virtual std::string ToJson(int indent = 0) const override
class OctreeNode

Subclassed by OctreeInternalNode, OctreeLeafNode

Public Functions

virtual bool IsLeaf() const = 0
virtual std::string ToJson(int indent = 0) const = 0
virtual std::string ToBitString() const = 0
virtual ~OctreeNode() = default