(align-frames [points tangents norms bnorms])
Takes a vector of PTFs (as returned by compute-frames) and re-aligns all frames such that the orientation of the first and last are the same. Returns updated PTFs.
Takes a vector of PTFs (as returned by compute-frames) and re-aligns all frames such that the orientation of the first and last are the same. Returns updated PTFs.
(compute-first-frame t)
Takes a tangent vector (normalized dir between 2 path points) and returns a suitable normal and binormal vector.
Takes a tangent vector (normalized dir between 2 path points) and returns a suitable normal and binormal vector.
(compute-frames points)
Takes a seq of 3d points and returns vector of its PTFs. The result is a vector of 4 elements: [points tangents normals binormals].
Takes a seq of 3d points and returns vector of its PTFs. The result is a vector of 4 elements: [points tangents normals binormals].
(compute-tangents points)
Takes a seq of path points and computes their tangents (pairwise normalized direction vectors).
Takes a seq of path points and computes their tangents (pairwise normalized direction vectors).
(sweep-mesh points profile)
(sweep-mesh points profile opts)
Like sweep-profile-faces, but returns result as mesh.
Like sweep-profile-faces, but returns result as mesh.
(sweep-point p n b [qx qy])
Takes a path point, a PTF normal & binormal and a profile point. Returns profile point projected on path (point).
Takes a path point, a PTF normal & binormal and a profile point. Returns profile point projected on path (point).
(sweep-profile-faces points profile)
(sweep-profile-faces points profile {:keys [attribs align?] :as opts})
Takes a list of path points and seq of 2D profile vertices to sweep along path and optional map of sweep & vertex attrib options. Returns vector of raw faces (each face a vector of [verts attribs]).
Takes a list of path points and seq of 2D profile vertices to sweep along path and optional map of sweep & vertex attrib options. Returns vector of raw faces (each face a vector of [verts attribs]).
(sweep-strand-mesh base r strands twists profile)
(sweep-strand-mesh base r strands twists profile opts)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close