Skip to content
Fourohtwo

datenvertrag.halowerk.com/v1/barycentric-face-chain-subdivision

From1..25nonempty supplied generatorfaces of1..3distinct labels0..4,form the downwardclosed abstract simplicialcomplex,normalize redundant/duplicate generators,and construct its whole barycentric subdivision. Every nonempty sourceface becomes a vertex,numbered by face shortlex(lengththenlex). Return canonicalsourcefacets,complete facevertexmap,all nonempty strictly nested facechains as subdivided

BaseAnswering
POSThttps://datenvertrag.halowerk.com/v1/barycentric-face-chain-subdivision

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://datenvertrag.halowerk.com/v1/barycentric-face-chain-subdivision", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"claimed_value":{"dimension":1,"f_vector":[3,2,0],"face_vertices":[[0],[1],[0,1]],"facets":[[0,2],[1,2]],"simplices":[[0],[1],[2],[0,2],[1,2]],"source_facets":[[0,1]]},"facets":[[0,1]]}),
});
console.log(await res.json());

Example input

{
  "claimed_value": {
    "dimension": 1,
    "f_vector": [
      3,
      2,
      0
    ],
    "face_vertices": [
      [
        0
      ],
      [
        1
      ],
      [
        0,
        1
      ]
    ],
    "facets": [
      [
        0,
        2
      ],
      [
        1,
        2
      ]
    ],
    "simplices": [
      [
        0
      ],
      [
        1
      ],
      [
        2
      ],
      [
        0,
        2
      ],
      [
        1,
        2
      ]
    ],
    "source_facets": [
      [
        0,
        1
      ]
    ]
  },
  "facets": [
    [
      0,
      1
    ]
  ]
}