Slice sphere from top and bottom

Hi. need to slice sphere from top and bottom, default it slice from bottom need added top as well.
https://playground.babylonjs.com/#WIR77Z#148
thanks

Welcome aboard!

Can’t you simply apply a negative Y scaling?

https://playground.babylonjs.com/#WIR77Z#149

1 Like

Y scaling is not what I need, shape need to be sliced from top and bottom.

You can use a lathe

https://playground.babylonjs.com/#PQ0GIE#12

2 Likes

Thanks, nice suggestion, but I want get this shape from sphere

The PG from @JohnK is from a sphere, only not the Babylon CreateSphere method but generated programmatically. It shouldn’t matter if the end result is the one you want?

Another solution if you really want to use the CreateSphere method is to apply some CSG afterward to remove the top, but it’s a bit overkill.

2 Likes

In which case then I think all you are left with is CSG GitHub - CraigFeldspar/BabylonCSG: Constructive Solid Geometry in BABYLON.js

https://www.babylonjs-playground.com/#BZALP7

2 Likes

Thank you bro, you are creating nice examples :slight_smile: but I have almost ready what I want to create just need cut the top and bottom.
https://playground.babylonjs.com/#WIR77Z#153

As I said other than using a lathe or CSG I know of no other method that can achieve what I think you are attempting.

2 Likes