This topic describes the ST_3DIntersection function. This function calculates the intersection of a 3D model and a box3d or meshgeom object.

Syntax

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

Parameters

ParameterDescription
sfmeshObjectThe sfmesh object.
boxThe box3d object.
geomThe closed meshgeom object.

Description

The result is synchronously updated to the UV and Normal values that are associated with the sfmesh object.

  • If this function calculates the intersection of an sfmesh object and a box3d object, this function aligns the axes and returns the intersection.
  • If this function calculates the intersection of an sfmesh object and a meshgeom object, this function directly returns the intersection.

Examples

SELECT ST_NumPatches(ST_3DIntersection(ST_3DMakeSphere(1.0, 5), 'BOX3D(0 0 0, 1 1 1)'::box3d));
--------------
        2608