Purpose: Vector-based blade profile generation with compound angle support.
call fxBladeProfileVector i_mode w_p1 w_p2 w_p3 w_p4 w_p5 w_p6 w_p7 i_kurveOut
Mode 1: Two XY Points (Vertical Blade)
Mode 1 i_BLADE_TWO_POINTS
| Parameter | Description |
w_p1 | First point X |
w_p2 | First point Y |
w_p3 | First point Z (ignored - uses workspace center) |
w_p4 | Second point X |
w_p5 | Second point Y |
w_p6 | Second point Z (ignored) |
w_p7 | Unused |
i_kurveOut | Starting kurve number for output |
Processing: Uses ORIGINAL rotation logic (proven working). Blade is always vertical.
Mode 2: Point + Normal + Length (Compound Angles)
Mode 2 i_BLADE_POINT_NORMAL_LENGTH
| Parameter | Description |
w_p1 | Center point X |
w_p2 | Center point Y |
w_p3 | Center point Z |
w_p4 | Normal vector X (will be normalized) |
w_p5 | Normal vector Y |
w_p6 | Normal vector Z |
w_p7 | Blade length (explicit) |
i_kurveOut | Starting kurve number for output |
Processing: Uses COMPOUND rotation logic. Supports any 3D blade orientation.
Mode 3: Point + Normal + Auto-Length
Mode 3 i_BLADE_POINT_NORMAL_AUTO
| Parameter | Description |
w_p1-p6 | Same as Mode 2 |
w_p7 | Unused (length computed from workspace extents + overshoot) |
Returns
| Variable | Value |
i_return | i_OK or i_ERROR |
w_return | Starting kurve number |
w_return2 | Total kurves created |
$_return | Status message |
๐ก Performance Tip
Mode 2 (30ยฐ compound angle) is approximately 2.5x faster than Mode 1 and produces fewer kurves (19 vs 32).