Public Member Functions | |
| __init__ (self, curve, reference_up=(0.0, 0.0, 1.0), nsamples=2048) | |
| np.ndarray | R (self, float s) |
| np.ndarray | origin (self, float s) |
| np.ndarray | transform (self, float s, float x, float y) |
| check_domain_admissibility (self, float domain_radius) | |
Public Attributes | |
| curve = curve | |
| reference_up = np.array(reference_up, dtype=float) | |
| kappa_max = float(self._kappa.max()) | |
Static Public Attributes | |
| int | KAPPA_TOL = 1e-8 |
| float | MAX_STEP_ROTATION = 0.35 |
Protected Member Functions | |
| _raw_frame (self, float s, use_fallback=None) | |
| np.ndarray | _fallback_normal (self, np.ndarray t) |
| _build_reference (self, int nsamples) | |
| int | _nearest_sample (self, float s) |
Protected Attributes | |
| _sref = np.linspace(0.0, L, nsamples + 1) | |
| _nref = np.zeros((nsamples + 1, 3)) | |
| _kappa = np.zeros(nsamples + 1) | |
| _fallback = np.zeros(nsamples + 1, dtype=bool) | |
| corc.frame.Frame.__init__ | ( | self, | |
| curve, | |||
| reference_up = (0.0, 0.0, 1.0), | |||
| nsamples = 2048 ) |
|
protected |
|
protected |
|
protected |
|
protected |
Pointwise frame before continuity fixes: returns (p, t, n, b, kappa). The Frenet-vs-fallback decision can be forced so that queries follow the hysteresis decision of the reference pass instead of chattering around the threshold.
| corc.frame.Frame.check_domain_admissibility | ( | self, | |
| float | domain_radius ) |
Local: the domain tube must not fold (kappa * r < 1). Global: distant centerline points must stay 2 r apart.
| np.ndarray corc.frame.Frame.origin | ( | self, | |
| float | s ) |
| np.ndarray corc.frame.Frame.R | ( | self, | |
| float | s ) |
Rotation matrix with columns [n, b, t]: local (x, y, s) -> global; the Frenet/fallback mode and the n,b sign follow the reference sampling (continuity, no threshold chatter).
| np.ndarray corc.frame.Frame.transform | ( | self, | |
| float | s, | ||
| float | x, | ||
| float | y ) |
Map local cross-section coordinates (x, y) at arc length s to global coordinates.
|
protected |
|
protected |
|
protected |
|
protected |
| corc.frame.Frame.curve = curve |
| corc.frame.Frame.kappa_max = float(self._kappa.max()) |
|
static |
|
static |
| corc.frame.Frame.reference_up = np.array(reference_up, dtype=float) |