ConvexPolyhedronQ

ConvexPolyhedronQ[poly]

gives True if the polyhedron poly is convex, and False otherwise.

Details

  • A polyhedron is convex if no line segment between two points ever goes outside the polyhedron:

Examples

open all close all

Basic Examples  (2)

Test whether a polyhedron is convex:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

ConvexPolyhedronQ gives False for non-convex polyhedrons:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

Scope  (3)

Properties & Relations  (3)

Possible Issues  (1)

Introduced in 2019
(12.0)