mcstasscript.tests.test_geometry_viewer#
Functions
|
Create a minimal mock component object compatible with ComponentModel. |
|
Create a mock component with xwidth/yheight parameters (rectangle type). |
Classes
|
Tests for _aggregate_intensity: reduces 1D monitor data to a scalar. |
|
Tests for _aggregate_intensity with 'ncount' aggregation. |
|
|
|
|
|
|
|
Tests for ComponentModel class. |
|
Verify config constants exist and have expected values. |
|
Tests for individual drawcall parsing functions. |
|
Tests for euler_to_rotation_matrix. |
|
Tests for graceful handling of geometry guess failures in view_with_guess. |
|
Tests for GeometryRule and GeometryRuleRegistry. |
|
Tests for built-in geometry guess rules. |
|
Tests for InstrumentModel class. |
|
Tests for intensity_to_color: maps intensity values to hex colors. |
|
Tests for MatplotlibRenderer colorbar. |
|
Tests for MatplotlibRenderer intensity colormode. |
|
Tests for disconnected LineSegmentsShape rendering. |
|
Tests for MatplotlibRenderer._transform_points with quaternion transforms. |
|
|
|
Tests for the normalize vector utility. |
|
Tests for normalize_quaternion: scales a quaternion to unit length. |
|
Tests for pos_rot_from_list: extracts position and rotation from a 16-element m4 matrix. |
|
Tests for quaternion_from_rotation_matrix: converts a 3x3 rotation matrix to quaternion. |
|
Tests for quaternion_from_vectors: computes quaternion that rotates v0 onto v1. |
|
Tests for quaternion_multiply: Hamilton product of two quaternions. |
|
Tests for quaternion_to_rotation_matrix: converts a quaternion to a 3x3 rotation matrix. |
|
Tests for resolve_transforms. |
|
Tests for safe_eval expression evaluation. |
|
Tests for shape dataclasses and Style. |
|
|
|
Tests for Transform dataclass and its point transformation methods. |
|
Tests for transform failure diagnostics in view_with_guess. |
|
Tests for triangulate_faces: converts face definitions into flat triangle indices. |