newton.utils#
Classes
Calculates elapsed times of functions annotated with event_scope. |
|
Builds and stores edge adjacency information for a triangle mesh. |
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. |
|
Compute positional offsets for multiple worlds arranged in a grid. |
Create rod/cable stiffness parameters from elastic moduli (circular cross-section). |
|
Generate per-segment quaternions using a parallel-transport style construction. |
|
|
Create straight cable polyline points. |
Generate straight cable points and matching per-segment quaternions. |
|
|
Downloads 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. |
|
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. |