Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GeometryCollective/ddg-exercises
/ functions
Functions
245 in github.com/GeometryCollective/ddg-exercises
⨍
Functions
245
◇
Types & classes
29
↓ 14 callers
Function
mapToColor
* Map a given value <x> to a RGB value in the given colormap. */
utils/src/colormap.cpp:1188
↓ 14 callers
Method
normalize
* Centers a mesh about the origin. * Also rescales the mesh to unit radius if <rescale> == true. */
core/src/geometry.cpp:314
↓ 7 callers
Method
meanEdgeLength
* Compute the mean length of all the edges in the mesh. * * Input: * Returns: The mean edge length. */
core/src/geometry.cpp:51
↓ 6 callers
Function
circumcenter
* Computes the circumcenter of a face. */
projects/discrete-exterior-calculus/src/main.cpp:122
↓ 5 callers
Function
redraw
projects/simplicial-complex-operators/src/main.cpp:102
↓ 5 callers
Method
solve
* Computes the solution of the poisson problem Ax = -M(rho - rhoBar), where A is the POSITIVE DEFINITE Laplace matrix * and M is the mass matrix. *
projects/poisson-problem/src/scalar-poisson-problem.cpp:25
↓ 4 callers
Method
barycentricDualArea
* Computes the barycentric dual area of a vertex. * * Input: The vertex whose barycentric dual area is to be computed. * Returns: The barycentric d
core/src/geometry.cpp:93
↓ 4 callers
Method
boundary
* Compute the set of simplices contained in the boundary bd(S) of the selected subset S of simplices. * * Input: A MeshSubset object containing the
projects/simplicial-complex-operators/src/simplicial-complex-operators.cpp:183
↓ 4 callers
Function
centroid
projects/vector-field-decomposition/src/main.cpp:70
↓ 4 callers
Method
closure
* Compute the closure Cl(S) of the selected subset of simplices. * * Input: A MeshSubset object containing the indices of the currently active verti
projects/simplicial-complex-operators/src/simplicial-complex-operators.cpp:134
↓ 4 callers
Method
eulerCharacteristic
* Compute the Euler characteristic of the mesh. */
core/src/geometry.cpp:41
↓ 4 callers
Method
integrate
* Performs mean curvature flow. * * Input: The timestep <h>. * Returns: */
projects/geometric-flow/src/mean-curvature-flow.cpp:32
↓ 4 callers
Function
sparseInverseDiagonal
* Compute the inverse of a sparse diagonal matrix. * * Input: A sparse diagonal matrix <M>. * Returns: The inverse of M, which is also a sparse dia
utils/src/solvers.cpp:9
↓ 4 callers
Method
star
* Compute the simplicial star St(S) of the selected subset of simplices. * * Input: A MeshSubset object containing the indices of the currently acti
projects/simplicial-complex-operators/src/simplicial-complex-operators.cpp:121
↓ 3 callers
Method
buildExteriorDerivative0Form
* Build exterior derivative on 0-forms. * * Input: * Returns: A sparse matrix representing the exterior derivative that can be applied to discrete
core/src/discrete-exterior-calculus.cpp:79
↓ 3 callers
Method
buildExteriorDerivative1Form
* Build exterior derivative on 1-forms. * * Input: * Returns: A sparse matrix representing the exterior derivative that can be applied to discrete
core/src/discrete-exterior-calculus.cpp:91
↓ 3 callers
Method
buildHodgeStar1Form
* Build Hodge operator on 1-forms. * * Input: * Returns: A sparse diagonal matrix representing the Hodge operator that can be applied to discrete 1
core/src/discrete-exterior-calculus.cpp:55
↓ 3 callers
Function
generateRandomFormOnVertices
projects/discrete-exterior-calculus/src/main.cpp:278
↓ 3 callers
Method
laplaceMatrix
* Builds the sparse POSITIVE DEFINITE Laplace matrix. Do this by building the negative semidefinite Laplace matrix, * multiplying by -1, and shifting
core/src/geometry.cpp:264
↓ 3 callers
Function
redraw
projects/discrete-exterior-calculus/src/main.cpp:670
↓ 3 callers
Function
updateVis
* Enable/disable visualizations depending on which one is selected. * This would be a lot more efficient if all the vis structures were in an array
projects/vector-field-decomposition/src/main.cpp:264
↓ 3 callers
Method
vertexNormalGaussianCurvature
* Computes the normal at a vertex using the "Gauss curvature" method. * * Input: The vertex on which the normal is to be computed. * Returns: The "
core/src/geometry.cpp:178
↓ 3 callers
Method
vertexNormalMeanCurvature
* Computes the normal at a vertex using the "mean curvature" method (equivalent to the "area gradient" method). * * Input: The vertex on which the n
core/src/geometry.cpp:190
↓ 2 callers
Method
angleDefect
* Computes the angle defect at a vertex. * * Input: The vertex whose angle defect is to be computed. * Returns: The angle defect of the given verte
core/src/geometry.cpp:202
↓ 2 callers
Method
buildFaceEdgeAdjacencyMatrix
* Construct the unsigned face-edge adjacency matrix A1. * * Input: * Returns: The sparse face-edge adjacency matrix which gets stored in the global
projects/simplicial-complex-operators/src/simplicial-complex-operators.cpp:73
↓ 2 callers
Method
buildGenerators
* Compute the homology generators of the mesh. * * Input: * Returns: */
projects/vector-field-decomposition/src/tree-cotree.cpp:87
↓ 2 callers
Method
buildHodgeStar0Form
* Build Hodge operator on 0-forms. * By convention, the area of a vertex is 1. * * Input: * Returns: A sparse diagonal matrix representing the Hod
core/src/discrete-exterior-calculus.cpp:43
↓ 2 callers
Method
buildHodgeStar2Form
* Build Hodge operator on 2-forms. * * Input: * Returns: A sparse diagonal matrix representing the Hodge operator that can be applied to discrete 2
core/src/discrete-exterior-calculus.cpp:67
↓ 2 callers
Method
buildVertexEdgeAdjacencyMatrix
* Construct the unsigned vertex-edge adjacency matrix A0. * * Input: * Returns: The sparse vertex-edge adjacency matrix which gets stored in the gl
projects/simplicial-complex-operators/src/simplicial-complex-operators.cpp:58
↓ 2 callers
Method
centerOfMass
* Compute the center of mass of a mesh. */
core/src/geometry.cpp:298
↓ 2 callers
Method
circumcentricDualArea
* Computes the circumcentric dual area of a vertex. * * Input: The vertex whose circumcentric dual area is to be computed. * Returns: The circumcen
core/src/geometry.cpp:238
↓ 2 callers
Method
compute
* Compute the harmonic bases [γ1, γ2 ... γn] of the input mesh. * * Input: A std::vector of homology generators of the mesh (which are in turn repre
projects/vector-field-decomposition/src/harmonic-bases.cpp:32
↓ 2 callers
Method
compute
* Computes the geodesic distances φ using the heat method. * * Input: <delta>, a dense vector representing the heat sources, i.e., u0 = δ(x). Return
projects/geodesic-distance/src/heat-method.cpp:52
↓ 2 callers
Method
computeCoExactComponent
* Compute the 2-form potential β by solving the system d𝛿β = dω. * * Input: A primal 1-form on the edges of the input mesh. * Returns: The coexact
projects/vector-field-decomposition/src/hodge-decomposition.cpp:52
↓ 2 callers
Method
computeConnections
* Compute the dual 1-form connections φ = 𝛿β + γ. * * Input: A vector where the ith entry is the the index of the singularity at the ith vertex. *
projects/direction-field-design/src/trivial-connections.cpp:108
↓ 2 callers
Method
computeExactComponent
* Compute the 0-form potential α by solving the system 𝛿dα = 𝛿ω. * * Input: A primal 1-form on the edges of the input mesh. * Returns: The exact co
projects/vector-field-decomposition/src/hodge-decomposition.cpp:40
↓ 2 callers
Method
computeHarmonicComponent
* Compute the harmonic component γ = ω - dα - 𝛿β of ω. * * Input: A primal 1-form <omega> on the edges of the input mesh, the exact component <dAlph
projects/vector-field-decomposition/src/hodge-decomposition.cpp:65
↓ 2 callers
Method
equals
Returns true if subsets are equivalent. */
core/include/mesh_subset.h:107
↓ 2 callers
Method
flatten
* Flattens the input surface mesh with 1 or more boundaries conformally. * * Input: * Returns: A MeshData container mapping each vertex to a vector
projects/parameterization/src/spectral-conformal-parameterization.cpp:33
↓ 2 callers
Function
gaussian
projects/discrete-exterior-calculus/src/main.cpp:274
↓ 2 callers
Method
initialize
Initialize
projects/simplicial-complex-operators/include/simplicial-complex-operators.h:29
↓ 2 callers
Method
isComplex
* Return true if the selected subset is a simplicial complex, false otherwise. * * Input: A MeshSubset object containing the indices of the currentl
projects/simplicial-complex-operators/src/simplicial-complex-operators.cpp:158
↓ 2 callers
Method
isPureComplex
* Check if the given subset S is a pure simplicial complex. If so, return the degree of the complex. Otherwise, return * -1. * * Input: A MeshSubse
projects/simplicial-complex-operators/src/simplicial-complex-operators.cpp:171
↓ 2 callers
Method
link
* Compute the link Lk(S) of the selected subset of simplices. * * Input: A MeshSubset object containing the indices of the currently active vertices
projects/simplicial-complex-operators/src/simplicial-complex-operators.cpp:146
↓ 2 callers
Function
minMaxFormValue
* Determine the min and max values in a matrix. * Used for determining roughly what the range for the colormap should be. */
projects/discrete-exterior-calculus/src/main.cpp:459
↓ 2 callers
Method
principalCurvatures
* Computes the (pointwise) minimum and maximum principal curvature values at a vertex. * * Input: The vertex on which the principal curvatures need
core/src/geometry.cpp:250
↓ 2 callers
Function
randomize
* Generate random form. */
projects/discrete-exterior-calculus/src/main.cpp:678
↓ 2 callers
Function
redraw
projects/direction-field-design/src/main.cpp:130
↓ 2 callers
Function
redraw
projects/poisson-problem/src/main.cpp:96
↓ 2 callers
Function
redraw
projects/geodesic-distance/src/main.cpp:151
↓ 2 callers
Function
redraw
projects/geometric-flow/src/main.cpp:58
↓ 2 callers
Method
scalarMeanCurvature
* Computes the (integrated) scalar mean curvature at a vertex. * * Input: The vertex whose mean curvature is to be computed. * Returns: The mean cu
core/src/geometry.cpp:226
↓ 2 callers
Function
showForm
* Visualize the current form. */
projects/discrete-exterior-calculus/src/main.cpp:620
↓ 2 callers
Method
totalAngleDefect
* Computes the total angle defect of the mesh. * * Input: * Returns: The total angle defect */
core/src/geometry.cpp:214
↓ 2 callers
Function
updateDirectionField
projects/direction-field-design/src/main.cpp:90
↓ 2 callers
Function
updateQuantities
* Update quantities when user generates new <omega>. */
projects/vector-field-decomposition/src/main.cpp:219
↓ 2 callers
Method
vertexNormalAngleWeighted
* Computes the normal at a vertex using the "tip angle weights" method. * * Input: The vertex on which the normal is to be computed. * Returns: The
core/src/geometry.cpp:142
↓ 2 callers
Method
vertexNormalAreaWeighted
* Computes the normal at a vertex using the "face area weights" method. * * Input: The vertex on which the normal is to be computed. * Returns: The
core/src/geometry.cpp:166
↓ 2 callers
Method
vertexNormalSphereInscribed
* Computes the normal at a vertex using the "inscribed sphere" method. * * Input: The vertex on which the normal is to be computed. * Returns: The
core/src/geometry.cpp:154
↓ 1 callers
Function
LoadTextureFromFile
https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples
projects/discrete-exterior-calculus/src/main.cpp:203
↓ 1 callers
Function
addCheckerboard
* Add checkerboard pattern to mesh */
projects/parameterization/src/main.cpp:150
↓ 1 callers
Method
addEdges
Add a set of edges to this subset. */
core/include/mesh_subset.h:64
↓ 1 callers
Method
addFaces
Add a set of faces to this subset. */
core/include/mesh_subset.h:88
↓ 1 callers
Method
addVertices
Add a set of vertices to this subset. */
core/include/mesh_subset.h:40
↓ 1 callers
Method
angle
* Computes the angle (in radians) at a given corner. (Do NOT use built-in function for this) * * * Input: The corner at which the angle needs to be
core/src/geometry.cpp:106
↓ 1 callers
Function
buildBasesVis
* Add visualizations for harmonic bases. */
projects/vector-field-decomposition/src/main.cpp:196
↓ 1 callers
Method
buildConformalEnergy
* Builds the complex conformal energy matrix EC = ED - A. * * Input: * Returns: A complex sparse matrix representing the conformal energy */
projects/parameterization/src/spectral-conformal-parameterization.cpp:20
↓ 1 callers
Method
buildEdgeVector
* Construct a vector encoding the edges in the selected subset of simplices. * * Input: Selected subset of simplices. * Returns: Vector of length |
projects/simplicial-complex-operators/src/simplicial-complex-operators.cpp:97
↓ 1 callers
Method
buildFaceVector
* Construct a vector encoding the faces in the selected subset of simplices. * * Input: Selected subset of simplices. * Returns: Vector of length |
projects/simplicial-complex-operators/src/simplicial-complex-operators.cpp:109
↓ 1 callers
Function
buildGeneratorsGraph
* Create surface graph quantity representing the generators. */
projects/vector-field-decomposition/src/main.cpp:168
↓ 1 callers
Method
buildPeriodMatrix
* Builds the period matrix Pij = ∑_{ek ∈ li} (ξj)k, where li is the ith homology generator, ek is a dual edge in li and * ξj is the jth harmonic 1-fo
projects/direction-field-design/src/trivial-connections.cpp:32
↓ 1 callers
Function
buildTreeCotreeGraph
* Create surface graph quantity representing the tree-cotree. */
projects/vector-field-decomposition/src/main.cpp:133
↓ 1 callers
Method
buildVertexVector
* Construct a vector encoding the vertices in the selected subset of simplices. * * Input: Selected subset of simplices. * Returns: Vector of lengt
projects/simplicial-complex-operators/src/simplicial-complex-operators.cpp:85
↓ 1 callers
Method
computeAreaScaling
* Compute the average area scaling of the mesh resulting from a * parameterization algorithm. * * Input: The mesh parameterization, and a vector of
utils/src/distortion.cpp:148
↓ 1 callers
Function
computeColors
* Map solution to mesh colors. */
projects/poisson-problem/src/main.cpp:104
↓ 1 callers
Function
computeColors
* Map solution to mesh colors. */
projects/geodesic-distance/src/main.cpp:57
↓ 1 callers
Method
computeDivergence
* Computes the integrated divergence ∇.X. * * Input: <X>, the vector field -∇u / |∇u| represented as a FaceData container * Returns: A dense vector
projects/geodesic-distance/src/heat-method.cpp:40
↓ 1 callers
Function
computeEulerCharacteristic
projects/vector-field-decomposition/src/main.cpp:66
↓ 1 callers
Function
computeNormals
Called once at start of program. */
projects/discrete-curvatures-and-normals/src/main.cpp:76
↓ 1 callers
Method
computeQuasiConformalError
* Compute the average quasi-conformal error of the mesh resulting from a * parameterization algorithm. * * Input: The mesh parameterization, and a
utils/src/distortion.cpp:88
↓ 1 callers
Function
computeShaded
Computed once at start of program. */
projects/discrete-curvatures-and-normals/src/main.cpp:95
↓ 1 callers
Method
computeVectorField
* Computes the vector field X = -∇u / |∇u|. * * Input: <u>, a dense vector representing the heat that is allowed to diffuse on the input mesh for a
projects/geodesic-distance/src/heat-method.cpp:28
↓ 1 callers
Function
createDualMesh
* Create dual mesh. */
projects/discrete-exterior-calculus/src/main.cpp:144
↓ 1 callers
Method
deleteEdges
Delete a set of edges from this subset. */
core/include/mesh_subset.h:76
↓ 1 callers
Method
deleteFaces
Delete a set of faces from this subset. */
core/include/mesh_subset.h:100
↓ 1 callers
Method
deleteVertices
Delete a set of vertices from this subset. */
core/include/mesh_subset.h:52
↓ 1 callers
Method
dihedralAngle
* Computes the signed angle (in radians) between two adjacent faces. (Do NOT use built-in function for this) * * Input: The halfedge (shared by the
core/src/geometry.cpp:118
↓ 1 callers
Function
flipZ
projects/direction-field-design/src/main.cpp:37
↓ 1 callers
Function
flipZ
projects/poisson-problem/src/main.cpp:43
↓ 1 callers
Function
flipZ
projects/discrete-exterior-calculus/src/main.cpp:93
↓ 1 callers
Function
flipZ
projects/vector-field-decomposition/src/main.cpp:50
↓ 1 callers
Function
flipZ
projects/parameterization/src/main.cpp:43
↓ 1 callers
Function
flipZ
projects/simplicial-complex-operators/src/main.cpp:42
↓ 1 callers
Function
flipZ
projects/discrete-curvatures-and-normals/src/main.cpp:59
↓ 1 callers
Function
flipZ
projects/geodesic-distance/src/main.cpp:42
↓ 1 callers
Function
flipZ
projects/geometric-flow/src/main.cpp:42
↓ 1 callers
Function
generateRandomFormOnEdges
projects/discrete-exterior-calculus/src/main.cpp:323
↓ 1 callers
Function
generateRandomFormOnFaces
projects/discrete-exterior-calculus/src/main.cpp:301
↓ 1 callers
Function
generateRandomOneForm
projects/vector-field-decomposition/src/main.cpp:80
↓ 1 callers
Function
hsv
* Computes the hue, saturation, and value of the RGB color model. */
utils/src/colormap.cpp:1224
next →
1–100 of 245, ranked by callers