Crate rust_3d [] [src]

3D/2D library written in Rust. Offering useful containers, structures and algorithms for 2D and 3D space. Meant as basis for numeric algorithms, viewers, game engines, ...

Modules

algorithms

Containing algorithms

bounding_box_2d

BoundingBox2D, an axis aligned bounding box within 2D space

bounding_box_3d

BoundingBox3D, an axis aligned bounding box within 3D space

compressed_point_3d

CompressedPoint3D

compressed_point_cloud_3d

CompressedPointCloud3D

distances_2d

Distances between objects in 2D space

distances_3d

Distances between objects in 3D space

distances_nd

Distances between objects in ND space

face3

Face3, a face defined by 3 indices (e.g. used for Mesh)

factory_2d

functions used for the creation of 2D shapes and geometries

filters

Containing filters

functions

utility functions

half_edge

HalfEdge, the half edge data structure

impls

rust-3d trait implementations for standard containers / structs

interpolation_2d

interpolations within 2D space. E.g. bezier, linear, cosine

io

Containing IO functions / traits / types

kd_tree

KdTree

line_2d

Line2D, a line within 2D space

line_3d

Line2D, a line within 3D space

line_segment_2d

LineSegment2D, a line segment within 2D space

line_segment_3d

LineSegment3D, a line segment within 3D space

matrix4

Matrix4, a matrix with 4 rows and columns

matrix4_pipe

Matrix4Pipe, which makes it easier to pipe different matrices in a defined order

mesh_3d

Mesh3D, a mesh with tri-faces within 3D space

non_negative

NonNegative, a wrapper for a f64 value, ensuring it is always >= 0

norm_2d

Norm2D, a normalized vector within 2D space

norm_3d

Norm3D, a normalized vector within 3D space

oc_node

OcNode, which is a single node used within OcTree

oc_tree

OcTree

plane_3d

Plane3D, a plane within 3D space

point_2d

Point2D, a point / position within 2D space

point_3d

Point3D, a point / position within 3D space

point_cloud_2d

PointCloud2D, a collection of positions within 2D space

point_cloud_3d

PointCloud3D, a collection of positions within 3D space

positive

Positive, a wrapper for a f64 value, ensuring it is always > 0

prelude

Exporting often used types / traits for convenience

ray_2d

Ray2D, a ray within 2D space

ray_3d

Ray3D, a ray within 3D space

result

Result, the result type used within rust-3d. Also defining the error enum and several transformation methods between error types.

searchable_mesh

SearchableMesh, transforms IsMesh to IsSearchableMesh

strong_types

Containing strong type definitions for safer usage

test_helper

helper functions for testing (these functions unwrap and panic, only use for tests)

traits

Containing traits used by rust-3d

view

View, which defines a restricted / full view onto any T. E.g. used when filtering collections of points.