Geometry too small on App Server

Hello,

We’re using geometries from multiple shapefiles. Many of those geometries are far from origin. As a result, Geometries appear too small on browser and when zoomed in, it disappears.

I’m not sure if this issue is due to location of geometry relative to origin
Or this is zooming issue.

Also It is not possible for us to bring geometries near origin.

I’d really appreciate if someone can offer possible solutions for this issue.

Thanks!

1 Like

What are you using to view these geometries?

We’re using threejs and rhino app server to view these geometries.

And using Urbano components to import data from shapefiles and converting data into curves and meshes to view.

Then you should check your camera far / near. If Geometry disappears if you zoom in too much, your camera near should be expanded.

1 Like

as in made a smaller number. If it is 0.1 then make it 0.001 or so.

2 Likes

Thanks Luis and Nathan.

We tried 0.001 and smaller values, still same result.

camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 0.000000000001, 1000)

1 Like

Probably its not about how far geometry is?!

But its looking tiny even when looking closely, and disappears when zoomed in more.

1 Like

Have you tried changing the scale of the geometry?

1 Like

No, It is at true scale. Since we have multiple numerical inputs controlling geometry (representing real world object) we have to keep it at true scale.

so then you have set the threejs scene to work with the scale of your geometry.

You probably should place your camera closer to your far-from-origin geometry.

I’ve encountered the same thing (perspective view, Rhino 8 on Mac M1). In my case, I was using GIS files and the models was placed 5000km from origin.

Geometries far from origin look like they are experiencing forces of relativity – squashed in one dimension. However if I selected all and moved them back to origin, they were fine.