newton.utils#
Classes
RGB color spaces used at Newton rendering boundaries. |
|
Calculates elapsed times of functions annotated with event_scope. |
|
Connectivity tables of a soft (triangle) mesh, consumed by collision and the solvers. |
|
Kernel-facing soft-mesh adjacency -- pure data, no Python state or methods. |
Functions
|
Map a scalar value to an RGB color using Bourke's color ramp. |
|
A function that generates coloring for a graph, which is represented by the number of nodes and an array of edges. |
|
Convert a linear RGB triple to sRGB/display encoding. |
|
Convert an sRGB/display RGB triple to linear Rec.709. |
|
Compute positional offsets for multiple worlds arranged in a grid. |
|
Download a specific folder from the newton-assets GitHub repository into a local cache. |
|
Wraps a function and records an event before and after the function invocation. |
|
Normalize a texture input into a contiguous image array. |
|
Normalize a texture array for rendering. |
|
Plots a graph using matplotlib and networkx. |
|
Rasterize a triangle mesh into a heightfield elevation grid. |
|
Remeshes a Mesh object using the specified remeshing method. |
|
Simple scaffold to run a benchmark class. |
|
Convert a surface mesh into a solid mesh by extruding along face normals. |
|
Parse a Warp value from a string. |
|
Check a tetrahedral mesh for quality issues and emit warnings. |
|
Check a triangle mesh for quality issues and emit warnings. |
Deprecated
Name |
Guidance |
|---|---|
|
Deprecated in 1.6; pass direct stiffness values to |
|
Deprecated in 1.6; supply elastic material through |
|
Deprecated in 1.6; construct |
|
Deprecated in 1.6; use |
|
Deprecated in 1.6; use |