HENMESH · Reference · 3D unstructured volume mesh
3D unstructured volume mesh
Generate a screening unstructured/hybrid tet/hex/prism volume mesh (HM-MESH-3D-VOL-001) — not certification volume.
Generate a screening unstructured/hybrid tet/hex/prism volume mesh (HM-MESH-3D-VOL-001 · volumeTetHex3d). Prefer structured C/O + wing extrude for regular airfoil/wing prep. This route is direction-of-travel for irregular geometry — not certification mesh, not wing–body industrial volume.
Work this page from top to bottom. Read Before you call this API, then Request syntax, then the walkthrough. Sample numbers show field names only.
How to use this documentation page
- Skim the intro so you know what meter this call spends.
- Complete the walkthrough once with the dummy key, then again with your live key.
- Copy a language sample and keep JSON key names identical.
- On every response, read HTTP status first.
- Cite
mesh3d.cellCount/ tet / hex / prism counts — not the viewport alone.
Before you call this API
- You have an active HENDOI account and a live HENMESH API key (
hmk_…). - You create the key from HENDOI Settings → Generate API key for HENMESH, or from the HENMESH Developers page.
- You will treat every numeric sample on this page as a shape guide, not measured engineering data.
- This meter spends
mesh3dRuns(featuremesh.volumeTetHex3d).
Request syntax
- Method.
POST. - URL.
https://henmesh.hendoi.com/api/v1/mesh/3d/volume/generate. - Header.
Authorization: Bearer hmk_demo_4c91e2ab8d07. Or send the raw key inX-Henmesh-Key. - Body. JSON below.
Step by step
- Sign in at https://hendoi.com/login, open Settings, then Generate API key for HENMESH. Copy the full
hmk_…key once. - Send
POSTtohttps://henmesh.hendoi.com/api/v1/mesh/3d/volume/generatewith the production host. - Prefer
Authorization: Bearer hmk_…. Or useX-Henmesh-Keywith no Bearer prefix. - Send NACA or profile points plus chord/span. Expect HTTP 200 with
meshClass: unstructured-screening. - On 401, recreate the key from Settings. On 403 with
QUOTA_EXCEEDED, open Limits and errors.
Quick checklist
- □ Method and URL path are exact.
- □ Live HENMESH API key is in the Authorization (or X-Henmesh-Key) header.
- □ Client reads
mesh3d.tetCount/hexCount/prismCount/cellCount. - □ Response hold codes include
UNSTRUCTURED_SCREENING_ONLY— not cert authority.
Example request
The key hmk_demo_4c91e2ab8d07 is a dummy. Replace it before you send.
POST https://henmesh.hendoi.com/api/v1/mesh/3d/volume/generate
Authorization: Bearer hmk_demo_4c91e2ab8d07
Content-Type: application/json
{
"projectId": "d4e5f6a7-1111-2222-3333-444455556666",
"naca": "0012",
"chord": 1.0,
"span": 4.0,
"mach": 0.3,
"alpha": 2,
"yPlus": 1,
"hexCore": true,
"tetraFill": true,
"prismLayers": true
}
If the request is accepted
{
"methodId": "volumeTetHex3d",
"standard": "HM-MESH-3D-VOL-001",
"meshClass": "unstructured-screening",
"mesh3d": {
"cellCount": 12000,
"tetCount": 9000,
"hexCount": 2000,
"prismCount": 1000
}
}
If the request is not accepted
HTTP 401, missing or deactivated key:
{
"error": "This API key is deactivated or was not recognized. Only an active key can call the API."
}
HTTP 403, a meter is used up:
{
"error": "API usage limit reached.",
"meter": "apiRequests",
"code": "QUOTA_EXCEEDED"
}
Language samples
Replace the dummy key before you send. Keep JSON key names identical.
cURL
curl -s -X POST \
"https://henmesh.hendoi.com/api/v1/mesh/3d/volume/generate" \
-H "Authorization: Bearer hmk_demo_4c91e2ab8d07" \
-H "Content-Type: application/json" \
-d '{"projectId":"d4e5f6a7-1111-2222-3333-444455556666","naca":"0012","chord":1.0,"span":4.0,"hexCore":true,"tetraFill":true,"prismLayers":true}' \
-w "\n%{http_code}\n"
Node.js
const res = await fetch("https://henmesh.hendoi.com/api/v1/mesh/3d/volume/generate", {
method: "POST",
headers: {
Authorization: "Bearer hmk_demo_4c91e2ab8d07",
"Content-Type": "application/json"
},
body: JSON.stringify({
projectId: "d4e5f6a7-1111-2222-3333-444455556666",
naca: "0012",
chord: 1.0,
span: 4.0,
hexCore: true,
tetraFill: true,
prismLayers: true
})
});
const data = await res.json();
console.log(res.status, data);
Python
import json, requests
payload = {
"projectId": "d4e5f6a7-1111-2222-3333-444455556666",
"naca": "0012",
"chord": 1.0,
"span": 4.0,
"hexCore": True,
"tetraFill": True,
"prismLayers": True,
}
r = requests.post(
"https://henmesh.hendoi.com/api/v1/mesh/3d/volume/generate",
headers={"Authorization": "Bearer hmk_demo_4c91e2ab8d07", "Content-Type": "application/json"},
data=json.dumps(payload),
)
print(r.status_code, r.json())
Python SDK
from henmesh import Client
c = Client() # HENMESH_API_KEY
out = c.mesh_3d_volume({
"naca": "0012",
"chord": 1.0,
"span": 4.0,
"hexCore": True,
"tetraFill": True,
"prismLayers": True,
})
print(out.get("meshClass"), out.get("mesh3d"))
JavaScript SDK
import { Client } from "@hendoi/henmesh";
const c = new Client(); // HENMESH_API_KEY
const out = await c.mesh3dVolume({
naca: "0012",
chord: 1.0,
span: 4.0,
hexCore: true,
tetraFill: true,
prismLayers: true,
});
console.log(out.meshClass, out.mesh3d);