Skip to main content

phynexis.utils

Utility module providing helper classes and functions for console logging, string manipulation, time measurement, signed distance fields, mesh I/O, sampling, math, and more.

Import

import phynexis

# Access submodule directly
phynexis.utils.info("hello")

# Or bind locally
from phynexis import utils
utils.info("hello")

Module Overview

Class / FunctionDescription
ConfigConsole output configuration
debug / info / warning / error / fatal / plainLogging functions
set_level / set_verbose / set_colorConsole control functions
to_stringNumeric to string conversion
get_time_microsHigh-resolution timestamp
MiniMapIdx64Lightweight index map
SDFCalculatorSigned distance field calculator
LevelSetFieldLevel set field representation
STLModel / read / read_off / write_off3D triangle mesh and mesh I/O
SurfaceMeshSurface mesh struct
DataIOTabular data I/O
SaveOptions / LoadOptions / FileFormatFile save/load options and format resolution
format_from_extension / format_from_path / join_path_fileFile format and path utilities
VoronoiVoronoi tessellation (Tessellation / Diagram)
CorkBoolean mesh operations (CorkWrapper)
OpenMP / parallelThread control bindings
FPE TrapsFloating-point exception trap utilities
Vec2d/Vec2i/Vec3d/Vec3i/Vec4d/Vec4i/Vec6dFixed-size vectors
Mat2d/Mat3dFixed-size matrices
FlatHashMapFlat hash map
ShapeGeometric shapes (Sphere, Cuboid, Ellipsoid, Cylinder, ...)
mathMath constants, vector ops, quaternion
samplingDistribution, spatial, orientation, spherical sampling
vtkVTK file I/O and conversion
wrappersCork, CGAL, Eigen, igl, TetGen wrappers with MPI utilities

C++ Namespace

phynexis::utils

pybind Module

pyutils (lazy-loaded via phynexis.utils)

See also