Scale Issue
See original GitHub issueThen I am trying to scale a mesh Scene, it looks I have two issues:
- The order of the Scene Geometry is inverted
- The scale factor is off?
Using Pytorch3D
verts, faces, aux = load_obj(FILE_PATH)
device = torch.device("cuda:0")
faces_idx = faces.verts_idx.to(device)
verts = verts.to(device)
center = verts.mean(0)
verts = verts - center
scale = max(verts.abs().max(0)[0])
verts_Pytorch3D_scaled = verts / scale
mesh = trimesh.load_mesh(FILE_PATH)
verts_Trimesh_scaled = mesh.scaled(1.0/scale)
verts_Pytorch3D_scaled != verts_Trimesh_scaled??
Why is this happening? Would be possible to preserve the scaling factor and order?
What would be the best way to scale meshes in Trimesh Scene preserving order and with the right scale?
Issue Analytics
- State:
- Created 10 months ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Scale issues in hydrological modelling: A review - Blöschl - 1995
Abstract A framework is provided for scaling and scale issues in hydrology. The first section gives some basic definitions. This is important as...
Read more >Small-Scale Issue Committee - Colorado Secretary of State
A committee that raises or spends money between $200 and $5,000 to support or oppose ballot measures. This new type of Issue Committee...
Read more >Windows scaling issues for high-DPI devices - Microsoft Support
Although these symptoms may be seen on a single monitor, they're more common when you use multiple monitors that vary in display resolution....
Read more >Reality Converter scale issue | Apple Developer Forums
I don't know if this is an issue with Apple's Reality Converter app or Blender (I'm using 3.0 on the Mac), but when...
Read more >Scale and Cross-Scale Dynamics - Ecology & Society
Cash, D. W., W. Adger, F. Berkes, P. Garden, L. Lebel, P. Olsson, L. Pritchard, and O. Young. 2006. Scale and cross-scale dynamics:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah the non-uniform scaling was just released yesterday: https://github.com/mikedh/trimesh/pull/1732
There was a weird caching bug and a backwards dot product preventing this from working, added a fix and test in the followup release #1742 which I’ll merge as soon as tests pass. I think this is close to working (PR’s welcome!):
Hey, not sure what Pytorch is doing, but the current trimesh behavior seems like it’s not re-ordering or inverting for a simple example: