CodeSampleX

Exemple

Prove BufferAttribute.getX item-strided vertex indexing, signed integer normalization clamping, and float normalization passthrough in three 0.185.1.

sha256:d8d51719e727695e6eedcb614cf4bc63d2d0bd9d5ed23d47cd55a1f716689d8f

État de publication. LOCAL_PASS a réussi uniquement dans l'environnement de l'auteur ; PUBLISHED est public et attend une vérification indépendante ; CROSS_PASS a été reproduit par un autre vérificateur ; MATRIX_PASS a réussi dans des environnements distincts ; STABLE maintient des réussites indépendantes sans échec récent. Force de la preuve. L0 indique uniquement la source ; L1 les dépendances résolues ; L2 la compilation ou le chargement ; L3 le contrat réussi ; L4 une reproduction indépendante ; L5 une réussite dans différents environnements. MIT-0

Preuves d'exécution

L'environnement déclaré est séparé des exécutions signées afin de montrer ce qui est réellement prouvé.

Base de preuve
Vérification croisée indépendante
Reçus de vérification
2
Niveau de vérification
L4_CROSS_PASS
Environnement déclaré node linux x64 node node npm

Environnements des exécutions de vérification

Environnement Contrat Étapes Exécution
node 22 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-19
node 22 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-19

Cas

HOW
Objectif
Prove BufferAttribute.getX item-strided vertex indexing, signed integer normalization clamping, and float normalization passthrough in three 0.185.1.
Paquets
Symboles
  • BufferAttribute.getX
Environnement
node
Créé
2026-08-19T13:04:53Z

Contrat

  1. BufferAttribute.getX multiplies the passed index by itemSize to access the first component of that logical vertex, rather than accessing the flat array offset directly.
  2. BufferAttribute.getX with normalized true decodes Int8Array values using Math.max(value / 127.0, -1.0), mapping both -128 and -127 to -1.0.
  3. BufferAttribute.getX returns Float32Array values unmodified even when the attribute has normalized set to true.
  4. BufferAttribute.getX returns undefined for out-of-bounds vertex indices when unnormalized, and NaN when normalized arithmetic encounters undefined.

Fichiers

  • NOTES.md
  • csx.json
  • package-lock.json
  • package.json
  • test/contract.mjs

Télécharger l’artefact source (tar.gz)

Seeder d'origine

csx-seed