differt.geometry.assemble_path#
- assemble_path(from_vertex, intermediate_vertices, to_vertex=None)[source]#
Assemble path 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_vertex (
Float[ArrayLike, '*#batch 3']) – The starting vertex of the path.intermediate_vertices (
Float[ArrayLike, '*#batch num_inter_vertices 3']|Float[ArrayLike, '*#batch 3']) – The intermediate vertices of the path. Ifto_vertexis not provided, then this argument is interpreted as the end vertex of the path.to_vertex (
Float[ArrayLike, '*#batch 3']|None) – The ending vertex of the path.
- Return type:
Float[Array, '*batch num_vertices+2 3']|Float[Array, '*batch 2 3']- Returns:
Assembled path vertices.