Comments (1)
hi
i have this error
x3dom-full.debug.js:51530 Uncaught TypeError: Cannot read property 'x' of undefined at x3dom.registerNodeType.defineClass.nodeChanged.nodeChanged (x3dom-full.debug.js:51530) at x3dom.NodeNameSpace.setupTree (x3dom-full.debug.js:27428) at x3dom-full.debug.js:27422 at Function.Array.forEach (x3dom-full.debug.js:35) at x3dom.NodeNameSpace.setupTree (x3dom-full.debug.js:27421) at x3dom-full.debug.js:27422 at Function.Array.forEach (x3dom-full.debug.js:35) at x3dom.NodeNameSpace.setupTree (x3dom-full.debug.js:27421) at HTMLUnknownElement.onNodeInserted (x3dom-full.debug.js:10530) at EditorScene.Group.addChild (Group.js:46) nodeChanged @ x3dom-full.debug.js:51530 x3dom.NodeNameSpace.setupTree @ x3dom-full.debug.js:27428 (anonymous) @ x3dom-full.debug.js:27422 Array.forEach @ x3dom-full.debug.js:35 x3dom.NodeNameSpace.setupTree @ x3dom-full.debug.js:27421 (anonymous) @ x3dom-full.debug.js:27422 Array.forEach @ x3dom-full.debug.js:35 x3dom.NodeNameSpace.setupTree @ x3dom-full.debug.js:27421 onNodeInserted @ x3dom-full.debug.js:10530 Group.addChild @ Group.js:46 EditorScene.addSceneObject @ EditorScene.js:115 EditorScene.addNewPrimitive @ EditorScene.js:31 divID.onclick @ VM1189:52
when i put x3d in primitive.
`function xx3d()
{
Primitive.call(this);
this.createFromDescription( g_editor.primitiveParameterMap[g_editor.primitiveNamesMap[this.constructor.name]]);
//create x3d
var shaftShape = document.createElement('Shape');
var appearance = document.createElement('Appearance');
var ImageTexture = document.createElement('ImageTexture');
ImageTexture.setAttribute('url', "aaa.jpg");
appearance.appendChild(ImageTexture);
shaftShape.appendChild(appearance);
var IndexedFaceSet = document.createElement('IndexedFaceSet');
IndexedFaceSet.setAttribute('coordIndex', '0 1 2 -1 2 1 ....etc
IndexedFaceSet.setAttribute('solid','false');
IndexedFaceSet.setAttribute('isPickable','true');
var Coordinate = document.createElement('Coordinate');
Coordinate.setAttribute('point', '-1.07365 0.469978 3.` ....etc
IndexedFaceSet.appendChild(Coordinate);
var TextureCoordinate = document.createElement('TextureCoordinate');
TextureCoordinate.setAttribute('point', '0.91419...etc
IndexedFaceSet.appendChild(TextureCoordinate);
shaftShape.appendChild(IndexedFaceSet);
this._matrixTransformNode.appendChild(shaftShape);
};`
from component-editor.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from component-editor.