UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

19 lines (18 loc) 589 B
"use strict"; import { NamedFunction3, NamedFunction4 } from "./_Base"; export class primitiveNeighboursCount extends NamedFunction3 { static type() { return "primitiveNeighboursCount"; } func(graph, primitiveIndex, sharedEdgeOnly) { return graph.neighboursCount(primitiveIndex, sharedEdgeOnly); } } export class primitiveNeighbourIndex extends NamedFunction4 { static type() { return "primitiveNeighbourIndex"; } func(graph, primitiveIndex, neighbourIndex, sharedEdgeOnly) { return graph.neighbourIndex(primitiveIndex, neighbourIndex, sharedEdgeOnly); } }