tessl install tessl/pypi-numpy-stl@3.2.0Library to make reading, writing and modifying both binary and ascii STL files easy.
Agent Success
Agent success rate when using this tile
85%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.39x
Baseline
Agent success rate without this tile
61%
Reposition STL meshes through axis-angle rotations, reusable rotation matrices, translations, and homogeneous transforms.
@generates
from __future__ import annotations
from typing import Sequence
import numpy as np
class MeshPose:
def __init__(self, mesh) -> None: ...
def rotate_axis_angle(self, axis: Sequence[float], radians: float, pivot: Sequence[float] | None = None) -> None: ...
def apply_rotation_matrix(self, matrix: np.ndarray, pivot: Sequence[float] | None = None) -> None: ...
def recenter(self, target_center: Sequence[float]) -> None: ...
def apply_transform(self, matrix: np.ndarray) -> None: ...Load and mutate STL meshes, updating vertices and normals.