Skip to contents

Converts a matrix of Bezier control points into a dense polyline by evaluating each curve segment at evenly spaced parameters. Supports both 4-point-per-curve (disjoint) and shared-endpoint formats.

Usage

sample_bezier(points, precision = 10)

Arguments

points

Matrix of control points (N x 3)

precision

Number of samples per curve segment

Value

Matrix of sampled points (M x ncol)