question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dynamically updating vertex coordinates on a Mesh' Geometry?

See original GitHub issue

Hi,

Im trying to update the vertex coordinates on the geometry of a (custom) mesh by doing this on some loop callback:

<meshvar>.geometry.vertices[idx].position.y = someNewYVal;

however the render on the screen is not showing the modifications. My question is whether this should work and the error is somewhere else… or is there anything I need to do to ‘invalidate’ the mesh geometry?

Thanks!

Issue Analytics

  • State:closed
  • Created 12 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
mrdoobcommented, Jun 1, 2013

It’s now geomety.verticesNeedUpdate.

0reactions
nvjkmrcommented, Oct 9, 2016

I’ve a similar problem. I’m still a noob. I have created a 3D cylinder geometry with a set of 2D points using LatheGeometry class. Now I have a small sphere in the scene. What I want is, when the sphere touches the cylinder, I want a groove in the surface of the cylinder at the point of collision. My question is, if I find the collision point using Raycaster, then how do I get to the point (that I defined in 2D) and change the geometry?

Or do I have to do it in some other way? And another question is, if I get to the point (that I defined in 2D) do I have to redraw the cylinder using LatheGeometry?

Read more comments on GitHub >

github_iconTop Results From Across the Web

GN: How do I dynamically create a mesh of vertices from a set ...
I'm trying to calculate a set of points in this Combine XYZ node and I want to dynamically create a mesh of vertices...
Read more >
Dynamically Morph A Mesh | Babylon.js Documentation
Learn how to dynamically morph a mesh in Babylon.js. ... Only its vertices change their coordinates. If you handle a box or another...
Read more >
Dynamically update vertices & faces of a Mesh three js
You need to set geometry.verticesNeedUpdate = true;. For more information, see verticesNeedUpdate in Three.js. Also, Geometry does not have ...
Read more >
Static/Dynamic Filtering for Mesh Geometry - arXiv
The filter can be applied to mesh face normals followed by vertex position update, to achieve scale-aware and feature-preserving filtering of mesh geometry....
Read more >
Fast algorithm for dynamically updating tetrahedral mesh
I have a tetrahedral mesh defined by the matrices X and T, where X is N-by-3 and each row represents the (x,y,z)-coordinates of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found