ST_3DDifference

Updated at:

This topic describes the ST_3DDifference function. This function calculates the difference between a 3D model and a box3d or meshgeom object.

Syntax

sfmesh ST_3DDifference(sfmesh sfmeshObject, box3d box);
sfmesh ST_3DDifference(sfmesh sfmeshObject, meshgeom geom);

Parameters

Parameter name

Description

sfmeshObject

The sfmesh object.

box

The box3d object.

geom

The closed meshgeom object.

Description

The result synchronously updates the UV and Normal values associated with the sfmesh object.

  • box3d: Calculates the difference between the sfmesh object and a coordinate-axis-aligned box3d object.

  • meshgeom: Calculates the difference between the sfmesh object and the meshgeom object.

Examples

SELECT ST_NumPatches(ST_3DDifference(ST_3DMakeSphere(1.0, 5), 'BOX3D(0 0 0, 0.2 0.2 0.2)'::box3d));
-----------------
         20480