https://sandcastle.cesium.com/?src=Voxels.html&label=All
in this example ,bound shows in image,if create a small area like lon[121,122],how to set the bound
is a relation in Model/View Matrix?can you give me some tips or some article
Hi @chen21439, the bounds of the voxel are set in the voxel data provider. See this updated Sandcastle for an example setting the provider bounds to lon[121,122], lat[31,32].
const provider = new ProceduralSingleTileVoxelProvider(
Cesium.VoxelShapeType.ELLIPSOID
);
provider.minBounds.x = Cesium.Math.toRadians(121);
provider.maxBounds.x = Cesium.Math.toRadians(122);
provider.minBounds.y = Cesium.Math.toRadians(31);
provider.maxBounds.y = Cesium.Math.toRadians(32);
provider.minBounds.z = -10000.0;
provider.maxBounds.z = 20000.0;
const primitive = createPrimitive(
provider,
customShaderColor,
modelMatrix
);