Skip to content

minkowski3d

Carsten Arnholm edited this page May 26, 2018 · 1 revision

minkowski3d

The boolean operator <minkowski3d> specifies the 3d minkowski sum of exactly two solids. The result is a new solid. In this implementation, the order of the parameters matter. The first parameter is generally the larger and can be concave or convex. The second parameter is assumed smaller and convex (such as a sphere). Typical use of the minkowski sum is to create an object with rounded edges.

To understand the minkowski sum, one may consider it to be the first object plus the second object placed in every position on the faces of the first object.

Example minkowski sum of a cube/cuboid union and a sphere.

<?xml version="1.0" encoding="utf-8"?>
<xcsg version="1.0" secant_tolerance="0.03">
	<minkowski3d>
		<union3d>
			<cube size="100" center="false"/>
			<cuboid dx="40" dy="40" dz="150" center="false"/>
		</union3d>
		<sphere r="20"/>
	</minkowski3d>
</xcsg>

Clone this wiki locally