4b1ecb688723a682d8d187cb40e466140d1f424bb4b8167092c40a6211a7c71f.json 3.8 KB

1
  1. {"ast":null,"code":"import { NodeGeometryBlock } from \"../nodeGeometryBlock.js\";\nimport { RegisterClass } from \"../../../Misc/typeStore.js\";\nimport { NodeGeometryBlockConnectionPointTypes } from \"../Enums/nodeGeometryConnectionPointTypes.js\";\n/**\n * Block used to generate the final geometry\n */\nexport class GeometryOutputBlock extends NodeGeometryBlock {\n /**\n * Gets the current vertex data if the graph was successfully built\n */\n get currentVertexData() {\n return this._vertexData;\n }\n /**\n * Create a new GeometryOutputBlock\n * @param name defines the block name\n */\n constructor(name) {\n super(name);\n this._vertexData = null;\n this._isUnique = true;\n this.registerInput(\"geometry\", NodeGeometryBlockConnectionPointTypes.Geometry);\n }\n /**\n * Gets the current class name\n * @returns the class name\n */\n getClassName() {\n return \"GeometryOutputBlock\";\n }\n /**\n * Gets the geometry input component\n */\n get geometry() {\n return this._inputs[0];\n }\n _buildBlock(state) {\n state.vertexData = this.geometry.getConnectedValue(state);\n this._vertexData = state.vertexData;\n }\n}\nRegisterClass(\"BABYLON.GeometryOutputBlock\", GeometryOutputBlock);","map":{"version":3,"names":["NodeGeometryBlock","RegisterClass","NodeGeometryBlockConnectionPointTypes","GeometryOutputBlock","currentVertexData","_vertexData","constructor","name","_isUnique","registerInput","Geometry","getClassName","geometry","_inputs","_buildBlock","state","vertexData","getConnectedValue"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Meshes/Node/Blocks/geometryOutputBlock.js"],"sourcesContent":["import { NodeGeometryBlock } from \"../nodeGeometryBlock.js\";\nimport { RegisterClass } from \"../../../Misc/typeStore.js\";\nimport { NodeGeometryBlockConnectionPointTypes } from \"../Enums/nodeGeometryConnectionPointTypes.js\";\n/**\n * Block used to generate the final geometry\n */\nexport class GeometryOutputBlock extends NodeGeometryBlock {\n /**\n * Gets the current vertex data if the graph was successfully built\n */\n get currentVertexData() {\n return this._vertexData;\n }\n /**\n * Create a new GeometryOutputBlock\n * @param name defines the block name\n */\n constructor(name) {\n super(name);\n this._vertexData = null;\n this._isUnique = true;\n this.registerInput(\"geometry\", NodeGeometryBlockConnectionPointTypes.Geometry);\n }\n /**\n * Gets the current class name\n * @returns the class name\n */\n getClassName() {\n return \"GeometryOutputBlock\";\n }\n /**\n * Gets the geometry input component\n */\n get geometry() {\n return this._inputs[0];\n }\n _buildBlock(state) {\n state.vertexData = this.geometry.getConnectedValue(state);\n this._vertexData = state.vertexData;\n }\n}\nRegisterClass(\"BABYLON.GeometryOutputBlock\", GeometryOutputBlock);\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,aAAa,QAAQ,4BAA4B;AAC1D,SAASC,qCAAqC,QAAQ,8CAA8C;AACpG;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,SAASH,iBAAiB,CAAC;EACvD;AACJ;AACA;EACI,IAAII,iBAAiBA,CAAA,EAAG;IACpB,OAAO,IAAI,CAACC,WAAW;EAC3B;EACA;AACJ;AACA;AACA;EACIC,WAAWA,CAACC,IAAI,EAAE;IACd,KAAK,CAACA,IAAI,CAAC;IACX,IAAI,CAACF,WAAW,GAAG,IAAI;IACvB,IAAI,CAACG,SAAS,GAAG,IAAI;IACrB,IAAI,CAACC,aAAa,CAAC,UAAU,EAAEP,qCAAqC,CAACQ,QAAQ,CAAC;EAClF;EACA;AACJ;AACA;AACA;EACIC,YAAYA,CAAA,EAAG;IACX,OAAO,qBAAqB;EAChC;EACA;AACJ;AACA;EACI,IAAIC,QAAQA,CAAA,EAAG;IACX,OAAO,IAAI,CAACC,OAAO,CAAC,CAAC,CAAC;EAC1B;EACAC,WAAWA,CAACC,KAAK,EAAE;IACfA,KAAK,CAACC,UAAU,GAAG,IAAI,CAACJ,QAAQ,CAACK,iBAAiB,CAACF,KAAK,CAAC;IACzD,IAAI,CAACV,WAAW,GAAGU,KAAK,CAACC,UAAU;EACvC;AACJ;AACAf,aAAa,CAAC,6BAA6B,EAAEE,mBAAmB,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}