pub fn face_transform_reference_point(
prefix: &[FeatureResult],
name: &str,
) -> Result<[f64; 3], String>Expand description
The point a PICKED entity puts the pivot on — what the dialog’s pivot pick
stores, resolved against the scene the feature runs against (prefix, the
results before it), so the stored number is the entity as the user saw it:
- a vertex (
{solid}@x,y,z, world coordinates) → that vertex, exactly; - a straight edge → its midpoint, a point ON the line a rotation about that edge needs; a circular edge → its centre; any other edge → the point at the middle of its parameter range;
- a sphere face → its centre; an axis-bearing face (cylinder, cone, torus,
revolution) → the point of its axis level with the face’s
selection_centre; any other face → that centre, the value a face SELECTION defaults to; - a datum frame → its origin.
Err names what failed: an empty name, a name not in that scene, or an
entity whose geometry does not evaluate. Nothing is guessed.