There are various examples here in the specification but I could not find an end-to-end example on how to start e.g. with a numerical dataset representing an object surface, construct the meshes on the fly and display in a browser.
Looking for examples of programmatic generation of geometries in xml3d
118 Views Asked by philippos At
1
There are 1 best solutions below
Related Questions in JAVASCRIPT
- Angular Show All When No Filter Is Supplied
- Why does a function show up as not defined
- I count the time the user takes to solve my quiz using Javascript but I want the same time displayed on another page
- Set "More" "Less" font size
- Using pagination on a table in AngularJS
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- State with different subviews
- Ajax jQuery firing multiple time display event for the same result
- Getting and passing MVC Model data to AngularJS controller
- Disable variable in eval
- javascript nested loops waiting for user input
- .hover() seems to overwrite .click()
- How to sort a multi-dimensional array by the second array in descending order?
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
Related Questions in 3D
- Is there a way to import Collada files into Java?
- 3d mouse aim camera 3rd person vertical C#
- 3D B-Spline approximation
- MatLab 3-vector plot/mesh with colour-scale
- Matplotlib 3d: surface does not cover a line
- Draw a sphere on a billboard with world normal from a pointlist
- babylon skybox from hell
- Create histogram
- How to get accurate 3D depth from 2D screen mouse click for large scale object in OpenGL?
- Custom WhirlyGlobe Skin
- Converting 2D images to 3D
- How to setup camera to point at object
- Finding 3D coordinate of object
- MATLAB 3D sliding window on a volume
- How to check for collisions in ThreeJS?
Related Questions in GEOMETRY
- Generating a sphere in OpenGL without high level libraries - what's wrong with my code?
- Matrix (?) to Rectangle and vise versa
- Turn a button into a loading circle animation
- Find a longitude given a pair of (lat,long) and an offset latitude
- 2D perspective transform in JavaScript
- how to convert Oracle geometry to SQL GEOMETRY
- Overlapping Rectangles Javascript
- Detect hole in geometry
- Reversing RotateAxisAngle back to angles
- WPF: 2 string.format in the same TextBlock?
- Quaternion to EulerXYZ, how to differentiate the negative and positive quaternion
- How to find a point given its distance from two other points?
- Ray/Rectangle intersection in 3D space
- Pairs of points on a graph
- Android OpenCV Detecting Circles takes too much FPS
Related Questions in PROGRAMMATICALLY-CREATED
- JSF Validators do not work if Random or SecureRandom used to generate component ID
- Why does postgresql fail on single quote
- programmatically generate different static UITableviews
- programmatically Design a View in objective - C
- How to segue *without* storyboard between Master and Detail view?
- Change device name programmatically in android
- android programmatically create layout with header table footer
- Setting constraints on UITableView inside UIView
- Force Main-Layout to Inflate
- Add Style after creating a View programmatically
- Optimize Performance for creating views at runtime
- add layout programmatically in android button click
- Creating UIViews programmatically that respond to touch events
- Setting button style programmatically
- How create buttonAction functions dynamically in Swift
Related Questions in XML3D
- XML3D: XFLOW syntax
- XML3D: Exporting scene
- Export ThreeJS Geometry to JSON
- XML3D: Exporting animations from blender
- XML3D: Efficient display & change of large textures
- Loading XML3D with require.js
- Access to render pipeline in XML3D: Object highlightning
- XML3D: Camera controls & XML3D tools
- XML3D Bounding boxes
- XML3D: generateRay
- how to access asset in xml3d 5.1
- xml3d-tools gives XML3D.URIResolver is undefined error
- XML3D getLocalBoundingBox gives "this.renderNode.getObjectSpaceBoundingBox is not a function" Error
- XML3D, document.createElementNS, and Meteor
- XML3D API methods and scene hierarchy
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
We have some examples of this in our xml3d-examples repository, particularly the wave example which generates and deforms a grid on the fly. The face morphing example also shows mesh deformation, the principle for generating the mesh would be basically the same.
What you'll want to do is write an Xflow operator that takes the numerical dataset as input and outputs vertex positions (and normals and face indices if necessary). The end result would look something like this:
Here is the operator from the wave example above, that would be a good starting point. Xflow will automatically re-compute the mesh whenever the input data changes and you could use the setScriptValue function on value elements (int, float, float3 etc) to set the input data without having to dump it into the DOM as text: