(align-with _ x opts)
Returns updated entity aligned with x
in the specified manner
Returns updated entity aligned with `x` in the specified manner
(area _)
Returns an entity's total surface area
Returns an entity's total surface area
(contains-point? _ p)
(contains-entity? _ s)
(bounds _)
Returns bounding rect for 2d entities or box for 3d
Returns bounding rect for 2d entities or box for 3d
(depth _)
Returns entity's extent along Z (zero for 2d)
Returns entity's extent along Z (zero for 2d)
(height _)
Returns entity's extent along Y axis
Returns entity's extent along Y axis
(width _)
Returns entity's extent along X axis
Returns entity's extent along X axis
(center _)
(center _ p)
Returns updated entity centered around world origin or given point
Returns updated entity centered around world origin or given point
(centroid _)
Returns centroid of entity
Returns centroid of entity
(circumference _)
Returns an entity's circumference
Returns an entity's circumference
(out-vertices _ v)
(in-vertices _ v)
(vertex-faces _ v)
Returns seq of faces the given vertex is part of.
Returns seq of faces the given vertex is part of.
(add-face _ face)
Adds a new face to a mesh. The face arg is a 2-element vector of [vertices attributes], where attributes is a map of arbitrary vertex attributes. E.g. (g/add-face m [verts {:uv [[0 0] [1 0] [1 1]]}])
Adds a new face to a mesh. The face arg is a 2-element vector of [vertices attributes], where attributes is a map of arbitrary vertex attributes. E.g. (g/add-face m [verts {:uv [[0 0] [1 0] [1 1]]}])
(remove-face _ fverts)
Takes a vector of vertices defining a face in the mesh and returns updated mesh without that face.
Takes a vector of vertices defining a face in the mesh and returns updated mesh without that face.
(faces _)
(faces _ opts)
Returns a mesh's face collection. If called without opts arg, returns faces directly as used internally by the mesh. If opts is truthy, returns each face as vector with a vector of face vertices as its first element. If the mesh supports vertex attributes, they're returned as the 2nd element in each face vector.
Returns a mesh's face collection. If called without opts arg, returns faces directly as used internally by the mesh. If opts is truthy, returns each face as vector with a vector of face vertices as its first element. If the mesh supports vertex attributes, they're returned as the 2nd element in each face vector.
(connected-components _)
(cyclic? _)
(merge-vertices _ a b)
(remove-vertex _ v)
(replace-vertex _ a b)
(vertex-neighbors _ v)
(vertex-valence _ v)
(angle-between _ a)
(heading _)
(heading-xy _)
(heading-xz _)
(heading-yz _)
(slope-xy _)
(slope-xz _)
(slope-yz _)
(intersect-shape _ s)
(intersect-line _ l)
(intersect-line _ p q)
(intersect-ray _ r)
(intersect-ray _ p dir)
(as-mesh _)
(as-mesh _ opts)
Transforms the current enitity into a mesh instance
Transforms the current enitity into a mesh instance
(get-prop _ k)
(set-prop! _ k v)
(update-prop! _ k f)
(face-normal _ f)
(vertex-normals _ force?)
(compute-face-normals _)
(vertex-normal _ v)
(face-normals _ force?)
(compute-vertex-normals _)
(as-polygon _)
(as-polygon _ res)
Transforms current entity into a Polygon2 instance
Transforms current entity into a Polygon2 instance
(rotate-around-axis _ a t)
(rotate-x _ t)
(rotate-y _ t)
(rotate-z _ t)
(random-point-inside _)
(point-at _ t)
(point-at _ u v)
(sample-uniform _ dist include-last?)
(random-point _)
(sample-with-resolution _ res)
(slice-with _ e)
(slice-with _ e classifier)
(slice-with _ e classifier parts)
(get-point-data _)
(add-point _ p d)
(get-point _)
(delete-point _ p)
(subdivide _)
(subdivide _ opts)
(subdivide-edge _ a b splits)
(subdivide-face _ f p displace splits)
(signed-volume _)
(volume _)
Returns an entity's inner volume.
Returns an entity's inner volume.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close