Skip to content

Commit

Permalink
fix: remove debug
Browse files Browse the repository at this point in the history
fix: vertexIdx
maint: readme
  • Loading branch information
xgui3783 committed Jul 8, 2024
1 parent c58ebcf commit cddec04
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Three-Surfer

Three wrapper for freesurfer gifti files
ThreeJS wrapper for freesurfer gifti files

[codepen gii-label example](https://codepen.io/xgui3783/pen/XWQoGjV?editors=0010)

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "three-surfer",
"version": "0.0.16",
"description": "",
"version": "0.0.17",
"description": "ThreeJS wrapper for freesurfer gifti files",
"main": "index.js",
"scripts": {
"dev": "rollup -c -w",
Expand Down
3 changes: 1 addition & 2 deletions src/ThreeSurfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,14 +400,13 @@ export default class ThreeSurfer implements IDisposable, IAnimatable{
mesh: {
faceIndex,
verticesIndicies,
vertexIndex: bufferGeomVertexIndices[bufferGeomVertexIndices],
vertexIndex: bufferGeomVertexIndices[idx],
geometry: firstIntersect.object?.geometry,
},
mouse: ev,
}
if (this.customColormap) {
const obj = this.customColormap.get(firstIntersect.object?.geometry)
console.log(obj.idxMap[verticesIndicies[idx]])
if (!!(obj?.idxMap)) {
detail.colormap = {
verticesValue: (Array.from(bufferGeomVertexIndices) as number[]).map(idx => obj.idxMap[idx])
Expand Down

0 comments on commit cddec04

Please sign in to comment.