[][src]Module signed_distance_field::distance_field

Structs

NormalizedDistanceField

Represents a distance field which was normalized to the range [0, 1]. Also contains information about the greatest distances of the unnormalized distance field.

SignedDistanceField

Contains the distance field and the vector field produced by SignedDistanceField::compute. Can be normalized in order to convert to an image with limited range. The type parameter D can be used to customize the memory layout of the distance field. The library provides default Storages for Vec<f16> and Vec<f23> alias F16DistanceStorage and F32DistanceStorage.

Traits

DistanceStorage

Specifies how to store distances in memory. This library defines an f16 storage and an f32 storage.

Type Definitions

F16DistanceStorage

Store distances as a vector of f16 numbers. Needs less storage with sufficient precision, but significantly longer to compute because of conversions between f16 and f32.

F32DistanceStorage

Store distances as a vector of f32 numbers. Needs more storage while providing high precision, but is significantly quicker because no conversions between f16 and f32 must be made.