differt.geometry.assemble_paths#
- assemble_paths(from_vertices, intermediate_vertices, to_vertices=None)[source]#
Assemble paths vertices by concatenating start-, intermediate, and end-vertices.
Arrays broadcasting is automatically performed, and the total number of vertices per path is simply
num_inter_vertices+2.- Parameters:
from_vertices (
Float[ArrayLike, '*#batch 3']) – The starting vertices of the paths.intermediate_vertices (
Float[ArrayLike, '*#batch num_inter_vertices 3']|Float[ArrayLike, '*#batch 3']) – The intermediate vertices of the paths. Ifto_verticesis not provided, then this argument is interpreted as the end vertices of the paths.to_vertices (
Float[ArrayLike, '*#batch 3']|None) – The ending vertices of the paths.
- Return type:
Float[Array, '*batch num_vertices+2 3']|Float[Array, '*batch 2 3']- Returns:
The assembled path vertices.