PolyhedralSets
LocatePoint
find maximal dimensional face containing a point
Calling Sequence
Parameters
Description
Examples
Compatibility
LocatePoint(point, polyset)
point
-
list of rationals, a point in the coordinate system of polyset
polyset
polyhedral set
This command finds the highest dimensional face of polyset that contains point. A point in a set's interior will return polyset, while a point not in the set will return the empty set.
with⁡PolyhedralSets:
A point inside the cube belongs to the trivial face that is the cube itself.
c≔ExampleSets:-Cube⁡;origin_location≔LocatePoint⁡0,0,0,c
c≔{Coordinates:x1,x2,x3Relations:−x3≤1,x3≤1,−x2≤1,x2≤1,−x1≤1,x1≤1
origin_location≔{Coordinates:x1,x2,x3Relations:−x3≤1,x3≤1,−x2≤1,x2≤1,−x1≤1,x1≤1
A point on the side of the cube returns the face with dimension 2 that includes the point.
cube_face≔LocatePoint⁡0,0,1,c
cube_face≔{Coordinates:x1,x2,x3Relations:x3=1,−x2≤1,x2≤1,−x1≤1,x1≤1
Dimension⁡cube_face
2
A point outside of the cube returns the empty set.
outside_cube≔LocatePoint⁡2,1,1,c
outside_cube≔{Coordinates:x1,x2,x3Relations:0≤−1
IsEmpty⁡outside_cube
true
The PolyhedralSets[LocatePoint] command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
PolyhedralSets[IsEmpty]
PolyhedralSets[`in`]
PolyhedralSets[InteriorPoint]
PolyhedralSets[Dimension]
PolyhedralSets[Faces]
PolyhedralSets[PolyhedralSet]
Download Help Document