Liking cljdoc? Tell your friends :D

thi.ng.geom.ptf


align-framesclj/s

(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.
sourceraw docstring

compute-first-frameclj/s

(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.
sourceraw docstring

compute-frameclj/s

(compute-frame tangents norms bnorms i)
source

compute-framesclj/s

(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].
sourceraw docstring

compute-tangentsclj/s

(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).
sourceraw docstring

sweep-meshclj/s

(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.
sourceraw docstring

sweep-pointclj/s

(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).
sourceraw docstring

sweep-profileclj/s

(sweep-profile profile attribs opts [points _ norms bnorms])
source

sweep-profile-facesclj/s

(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]).
sourceraw docstring

sweep-strandclj/s

(sweep-strand [p _ n b] r theta delta profile opts)
source

sweep-strand-meshclj/s

(sweep-strand-mesh base r strands twists profile)
(sweep-strand-mesh base r strands twists profile opts)
source

sweep-strandsclj/s

(sweep-strands base r strands twists profile opts)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close