Measurements & AnalysisEnglish

Compute Vertex Measurements (Mesh)

Compute Vertex Measurements (Mesh) is a Dragonfly plugin that computes up to 20 per-vertex measurements on a surface mesh that already exists in your scene. Each measurement produces one scalar value for every vertex of

Updated 2026-07-04User manual

Compute Vertex Measurements (Mesh) - User Manual

Dragonfly Prototype Apps · Compute Vertex Measurements (Mesh)...

Version 1.0 · 2026-07-04


English Manual

Contents

1. Overview

2. Use cases

3. Installation and enabling

4. Environment and first-run setup

5. Interface reference

6. Step-by-step usage

7. Parameter reference

8. Outputs

9. FAQ and troubleshooting

10. Notes and known limitations

11. References

1. Overview

Compute Vertex Measurements (Mesh) is a Dragonfly plugin that computes up to 20 per-vertex measurements on a surface mesh that already exists in your scene. Each measurement produces one scalar value for every vertex of the mesh and writes it back onto the same mesh as a new per-vertex scalar field — displayable with a colormap just like any other mesh property. The workflow is simple: pick a mesh, tick the measurements you want, and click Compute.

The 20 measurements are organized into 5 groups by purpose: Curvature, Thickness & distance, Surface exposure & roughness, Local geometry & topology, and Spectral shape signatures. They cover mean / Gaussian / principal curvature and shape index, local wall thickness (SDF), geodesic and radial distance, deviation from a best-fit sphere / plane or from a second reference mesh, ambient occlusion, roughness, and the Heat Kernel Signature (HKS) and Wave Kernel Signature (WKS).

Engine and algorithms

All heavy computation runs in an isolated Windows venv subprocess kept separate from Dragonfly, so Dragonfly's own Python environment is never touched. All core libraries are permissively licensed (MIT / BSD / MPL-2.0) with no GPL / CGAL components:

On Dragonfly 2027.1 (Python 3.14) the bundled Python cannot build this environment. Install 64-bit Python 3.12 from python.org, make it available through the Python launcher or PATH, and run Setup Environment. Dragonfly 2025.1 can use its bundled Python.

  • trimesh (MIT) — geometric measures, inward ray-cast thickness, proximity / deviation queries, normals, adjacency.
  • libigl (MPL-2.0; only the permissive core is used, igl.copyleft.* is never imported) — the Curvature group (principal-curvature quadric fit).
  • potpourri3d (MIT) — robust heat-method geodesic distance.
  • robust-laplacian (MIT) — robust cotangent Laplacian / mass matrix for roughness, HKS, WKS.
  • rtree (MIT; underlying libspatialindex is MIT) — spatial-index backend for trimesh ray casting and nearest-point queries.
  • numpy / scipy — pure numerical computation (radial distance, best-fit sphere / plane, etc.).

Licensing: every third-party library used here is permissively licensed (MIT / BSD / MPL-2.0) with no GPL or CGAL code, so it is safe for commercial use.

2. Use cases

The plugin is useful wherever local surface geometry matters. Typical cases include:

  • Materials science and industrial CT: measure wall thickness and surface roughness of parts; assess deviation of a scanned part from a reference / CAD-derived mesh.
  • Additive manufacturing (AM) quality checks: compare the as-built print against the nominal model to locate distortion, warpage, and over-/under-thickness regions.
  • Life science: curvature and shape analysis of segmented anatomical surfaces (bones, cells, membranes), identifying ridges, grooves, and depressions.
  • Reverse engineering and metrology: evaluate form errors such as roundness and flatness via deviation from a best-fit sphere / plane.
  • Shape-analysis research: describe and compare shapes with intrinsic, isometry-invariant spectral signatures such as HKS / WKS.

A mesh must already exist in the scene. This plugin does not create meshes — it computes per-vertex properties on existing ones. If you have no mesh yet, first generate or import a surface mesh with Dragonfly's own tools.

3. Installation and enabling

1. Download the Prototype Apps online package from ImageFly and extract it. Close Dragonfly, run install_prototype_apps.exe and select the Dragonfly version to install into.

2. Start Dragonfly, open Prototype Apps ▸ App Store and search for Compute Vertex Measurements (Mesh). If an Enable button is shown, click it and follow the sign-in, download or installation prompts.

3. Restart Dragonfly when prompted, then open Compute Vertex Measurements (Mesh) from the Prototype Apps menu. Return to App Store to enable or disable it later.

To uninstall all Prototype Apps, close Dragonfly and run uninstall_prototype_apps.exe from the online package.

4. Environment and first-run setup

Nothing is downloaded at install time. Before first use, click Setup environment once in the panel. This builds an isolated venv inside the plugin's code directory using Dragonfly's own Python as the base (falling back to a system Python if needed) and pip-installs the required compute libraries.

What Setup environment does

  • Builds runner\venv (inside the installed GenericMenuItems\VertexMeasurements\runner\ directory).
  • pip-installs the core dependencies: numpy, scipy, trimesh, rtree, potpourri3d, robust-laplacian (all ship prebuilt wheels; usually a few minutes).
  • Installs the optional libigl on a best-effort basis. libigl 2.6.x has no prebuilt Windows wheel, so pip builds it from source (needs a C++ / CMake toolchain, a few minutes). If the build fails on a machine without a compiler, setup does not fail overall — only the 7 Curvature measurements become temporarily unavailable, while the other ~13 measurements keep working.
  • Once ready, the venv Python path is recorded in runner\venv_python.txt; on the next open the panel shows “Environment: ready”.

Resource requirements

Item

Details

Internet

Required once, only while Setup environment downloads dependencies; computation afterwards is fully offline.

Download size

Roughly tens to ~100+ MB for the core deps (numpy/scipy/trimesh/rtree/potpourri3d/robust-laplacian).

GPU

Not required. Everything runs on the CPU.

WSL / external apps

Not required. No WSL and no external programs to install.

Dragonfly version

Verified on Dragonfly 2027.1.

Where the environment lives

  • Isolated environment: runner\venv under the installed code directory (inside %LOCALAPPDATA%\comet\<Dragonfly version>\pythonUserExtensions\GenericMenuItems\VertexMeasurements\runner\).
  • Per-job directories (input / result files): runner\jobs\ (created at runtime).
  • venv Python path record: runner\venv_python.txt.

Fallback if setup fails: if libigl fails to build for lack of a compiler, use the other measurements as usual; when you need the Curvature group, install a C++ / CMake toolchain and click Setup environment again. The core dependencies themselves ship prebuilt wheels and rarely fail.

5. Interface reference

From top to bottom the panel has: a mesh selector, the grouped measurement list, Select all / none buttons, an environment row, a compute row, a progress bar, and a log box.

5.1 Mesh selector

  • Mesh (dropdown): lists every surface mesh in the current scene; pick the mesh you want to measure.
  • Refresh (button): re-scans the scene and refreshes the list. Click it if you created / imported a mesh after opening the panel.

5.2 Grouped measurement list

A scrollable area listing all 20 measurements in 5 groups, one checkbox each (ticked = compute). By default only Mean curvature (H) and Gaussian curvature (K) are ticked. Some items have a ? button that opens a dialog explaining that measurement in detail. The 5 groups are:

  • Curvature: mean, Gaussian, max / min principal curvature, shape index, curvedness, max absolute curvature (7 items).
  • Thickness & distance: local thickness (SDF), geodesic distance, radial distance, deviation from best-fit sphere / plane, deviation from reference mesh (5 items).
  • Surface exposure & roughness: ambient occlusion / accessibility, surface roughness (high-pass) (2 items).
  • Local geometry & topology: normal variation, vertex valence, vertex (barycentric) area (3 items).
  • Spectral shape signatures: Heat Kernel Signature (HKS), Wave Kernel Signature (WKS) (2 items).

5.3 Reference-mesh selector (conditional)

Only when Deviation from reference mesh is ticked does a framed area appear below the list, prompting “Select a SECOND mesh to measure deviation against:” and containing a Reference mesh (dropdown). Pick the second mesh to compare against here. Un-ticking the measurement hides this area automatically.

5.4 Select all / none

  • Select all: ticks every measurement.
  • Select none: clears all ticks.

5.5 Environment row

  • Environment status label: shows the state, e.g. “Environment: ready” or “Environment: not set up — click 'Setup environment'.”
  • Setup environment (button): click once on first use to build the isolated venv and install dependencies (see Chapter 4).

5.6 Compute row, progress bar and log

  • Compute (button): runs all ticked measurements on the selected mesh and writes results back onto it.
  • Cancel (button): becomes enabled during a run and requests cancellation of the current task.
  • Progress bar: shows a busy state while a task runs.
  • Log box (read-only): streams run info — number of meshes found, vertex / face counts, names of the scalar slots written back, and error summaries for any failed measurement.

6. Step-by-step usage

6.1 Basic workflow (single mesh)

1. Make sure a surface mesh exists in the scene (this plugin does not create meshes).

2. Open Prototype Apps ▸ Compute Vertex Measurements (Mesh)....

3. On first use, click Setup environment and wait until the status reads “Environment: ready” (needs internet, a few minutes).

4. Pick the target mesh in the top Mesh dropdown (click Refresh first if needed).

5. Tick the measurements you want (Mean and Gaussian curvature are ticked by default; use Select all / Select none to adjust quickly).

6. Click Compute. The log box shows the vertex / face counts read and the progress.

7. When finished, a dialog reports how many per-vertex scalar fields were added; switch the mesh's scalar slot / colormap in Dragonfly to view each result (see Chapter 8).

6.2 Deviation from reference mesh (two-mesh comparison)

1. Make sure both the measured mesh and the reference mesh exist in the scene (e.g. a scan vs a nominal CAD model).

2. Select the measured mesh in the Mesh dropdown.

3. Tick Deviation from reference mesh; the reference-mesh area appears below.

4. Pick the reference mesh in the Reference mesh dropdown (it must differ from the measured mesh, or an error is shown).

5. Click Compute. The plugin computes the signed distance from each vertex of the measured mesh to the reference surface and writes it back.

6. Sign convention: inside the reference = positive, outside = negative; the colormap legend is labelled accordingly.

Input requirement: the input must be a triangulated surface mesh. The plugin reads its world-space vertices (V) and triangle connectivity (F). If a mesh has no vertices / faces, reading fails.

7. Parameter reference

The table below lists all 20 measurements with their group, unit, compute backend (library), and internal default parameters. Apart from whether an item is ticked by default, each measurement's internal parameters (ray count, number of eigenvalues, etc.) are preset by the plugin — you do not enter them in the panel.

Measurement

Group

Unit

Backend

Default / parameters

Mean curvature (H)

Curvature

1/length

libigl

ticked by default; H=(κ₁+κ₂)/2

Gaussian curvature (K)

Curvature

1/length²

libigl

ticked by default; K=κ₁·κ₂

Max principal curvature (κ₁)

Curvature

1/length

libigl

—

Min principal curvature (κ₂)

Curvature

1/length

libigl

—

Shape index

Curvature

[-1, 1]

libigl

+1 dome / 0 saddle / -1 cup

Curvedness

Curvature

1/length

libigl

C=sqrt((κ₁²+κ₂²)/2)

Max absolute curvature |κ|

Curvature

1/length

libigl

max(|κ₁|,|κ₂|)

Local thickness (SDF)

Thickness & distance

length

trimesh

n_rays=5, cone_deg=20.0

Geodesic distance

Thickness & distance

length

potpourri3d

source_mode=auto

Radial distance

Thickness & distance

length

numpy

straight-line distance to centroid

Deviation from best-fit sphere

Thickness & distance

length

numpy

signed distance to least-squares sphere

Deviation from best-fit plane

Thickness & distance

length

numpy

signed distance to least-squares plane

Deviation from reference mesh

Thickness & distance

length

trimesh

needs a 2nd reference mesh; inside = positive

Ambient occlusion / accessibility

Surface exposure & roughness

[0, 1]

trimesh

n_samples=64, report=accessibility

Surface roughness (high-pass)

Surface exposure & roughness

length

robust-laplacian

smoothing=1.0

Normal variation (deg)

Local geometry & topology

degrees

trimesh

mean angle vs incident faces

Vertex valence (degree)

Local geometry & topology

count

trimesh

number of edges meeting at the vertex

Vertex (barycentric) area

Local geometry & topology

length²

trimesh

1/3 of summed area of surrounding triangles

Heat Kernel Signature (HKS)

Spectral shape signatures

a.u.

robust-laplacian + scipy

n_eig=80, scale=0.5

Wave Kernel Signature (WKS)

Spectral shape signatures

a.u.

robust-laplacian + scipy

n_eig=80, energy=0.5

Geodesic source explained

Geodesic distance computes, for each vertex, the shortest distance measured along the mesh surface (not straight-line) to a set of source vertices, using the heat method (potpourri3d). The source is chosen automatically, with no extra picking (source_mode=auto): if the mesh has an open boundary (e.g. a cropped / shell surface), every boundary vertex is a source, giving “distance inward from the edge”; if the mesh is closed (no boundary), the single vertex farthest from the centroid is the source, giving “distance across the object from its most extreme point”.

8. Outputs

Each successful measurement is written back as a new per-vertex scalar field (scalar slot) onto the mesh you selected (the reference mesh is never modified). The slot is named after the measurement (e.g. “Mean curvature (H)”) with the corresponding unit. After writing, the plugin refreshes the mesh display and legend.

How to view the results

1. Read the completion dialog and the log box after computing: the line “Added scalar slots: ...” lists the slots successfully written this run.

2. Select the mesh in Dragonfly and switch the vertex scalar slot to display in its property / display settings.

3. Choose a suitable colormap and value range for that slot to see the measurement rendered as colors on the mesh surface in the 3D view.

4. If you computed several measurements, switch between the scalar slots to inspect each one.

The plugin only appends per-vertex scalar fields to the mesh; it does not create Channels, ROIs, MultiROIs or new mesh objects, and it does not change the mesh geometry. If a measurement fails, the other successful ones are still written back and the failure reason is printed in the log box.

9. FAQ and troubleshooting

Q1: I can't find “Compute Vertex Measurements (Mesh)...” in the menu.

A: Confirm that Compute Vertex Measurements (Mesh) is enabled in Prototype Apps ▸ App Store, then restart Dragonfly.

Q2: The environment shows “not set up”, or Compute says it can't run.

A: The compute environment hasn't been built yet. Click Setup environment, stay online, and wait a few minutes. When it's done the status reads “Environment: ready”. If setup fails, read the specific error in the log box.

Q3: The 7 Curvature measurements fail while the others work.

A: The Curvature group depends on the optional libigl library. libigl has no prebuilt Windows wheel and must be built from source, so it fails to install on a machine lacking a C++ / CMake toolchain (this best-effort behaviour is by design and never blocks the other measurements). Fix: install a C++ / CMake toolchain, then click Setup environment again. Until then, use the other ~13 measurements.

Q4: I ticked “Deviation from reference mesh” but it won't compute.

A: This measurement needs a second mesh chosen in the Reference mesh dropdown that appears below, and the reference must be different from the measured mesh. If none is selected, or it equals the measured mesh, the plugin shows a message. Make sure the scene has at least two meshes and select them separately.

Q5: Local thickness (SDF) is slow.

A: Local thickness casts rays inward from every vertex, which is slow on very large meshes. Try a smaller / decimated mesh first; to speed up large meshes you can additionally install the optional embreex accelerator in the environment (without it, trimesh falls back to a slower pure-Python ray engine).

Q6: The mesh list is empty.

A: There is no recognizable surface mesh in the current scene. Generate or import a mesh first, then click Refresh on the panel to re-scan the scene.

10. Notes and known limitations

  • The input must be an existing triangulated surface mesh; the plugin does not create, import, or modify mesh geometry.
  • Results are written back only to the selected mesh, appended as per-vertex scalar slots; the reference mesh is untouched.
  • The Curvature group (7 items) and some measurements depend on optional libraries (notably libigl); if an optional library did not install, those measurements report a clear error at compute time while the rest keep working.
  • HKS / WKS require an eigen-decomposition of the mesh Laplacian and are heavier than the geometric measures, especially on large meshes.
  • Local thickness (SDF) is meaningful mainly on solid / shell-like surfaces; ray casting is slow on large meshes.
  • Geodesic distance auto-selects its source depending on whether the mesh is closed (open boundary vs farthest point); the field's meaning differs per mesh — see Chapter 7.
  • Building the environment the first time needs internet; installing libigl may require a C++ / CMake build toolchain.
  • Verified on Dragonfly 2027.1; computation is CPU-only and needs no GPU.

11. References

  • trimesh (MIT): https://github.com/mikedh/trimesh
  • libigl (MPL-2.0): https://libigl.github.io/
  • potpourri3d (MIT): https://github.com/nmwsharp/potpourri3d
  • robust-laplacian (MIT): https://github.com/nmwsharp/robust-laplacians-py
  • rtree (MIT) / libspatialindex: https://github.com/Toblerity/rtree
  • SciPy: https://scipy.org/ · NumPy: https://numpy.org/

For the algorithmic concepts behind the Koenderink shape index, Heat Kernel Signature (HKS), Wave Kernel Signature (WKS), and Shape Diameter Function (SDF), consult the project documentation above and the relevant computational-geometry / shape-analysis literature.

You’ve reached the end of this manual.Explore the library →

PROTOTYPE APPS

Manual assistant

Find an app, understand a parameter, or follow a workflow. Answers include links to the manuals.

Questions and answers are saved long-term to your account. You and site administrators can view them; they may be reviewed to improve the product. Do not submit passwords or confidential data.

All models share a daily allowance. Larger models use more. Chat pauses at the daily protection limit; manual search remains available.

Search the manuals

Cloudflare AI receives your question, recent conversation and relevant public manual excerpts. Records are stored privately in Cloudflare R2 without automatic expiry. Check the cited manual before acting on an answer.