Finding the faces of a shape from coordinates
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have shapes, both regular and irregular that are defined by a set of 3D xyz coordinates i.e. 100 coordinates that define a cube. Some of there coordinates make up the faces of the cube and some of the coordinates are within the cube.
I want to know whether there is some form of algorithm or formula that can analyse the coordinates and determine which of the coordinates make up the faces of the cube?
Thanks for the help in advance.
geometry coordinate-systems
add a comment |Â
up vote
0
down vote
favorite
I have shapes, both regular and irregular that are defined by a set of 3D xyz coordinates i.e. 100 coordinates that define a cube. Some of there coordinates make up the faces of the cube and some of the coordinates are within the cube.
I want to know whether there is some form of algorithm or formula that can analyse the coordinates and determine which of the coordinates make up the faces of the cube?
Thanks for the help in advance.
geometry coordinate-systems
A convex hull algorithm?
â Jaap Scherphuis
Aug 16 at 9:23
Is there any guarantee that your set of coordinates includes points from the sides and corners? If not, the cube won't be unique. Just think of four points in the plane that form a quadrilateral. You could wrap them with other quadrilaterals. In the result, the coordinates would not longer be corners of the quadrilateral. On the other hand, if you know that all corner-points are part of your coordinate set, then any convex hull algorithm will yield the faces.
â Babelfish
Aug 16 at 9:24
Yes, some of the points will be in the faces of the faces. The convex hull algorithm looks promising though.
â user584683
Aug 16 at 9:30
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have shapes, both regular and irregular that are defined by a set of 3D xyz coordinates i.e. 100 coordinates that define a cube. Some of there coordinates make up the faces of the cube and some of the coordinates are within the cube.
I want to know whether there is some form of algorithm or formula that can analyse the coordinates and determine which of the coordinates make up the faces of the cube?
Thanks for the help in advance.
geometry coordinate-systems
I have shapes, both regular and irregular that are defined by a set of 3D xyz coordinates i.e. 100 coordinates that define a cube. Some of there coordinates make up the faces of the cube and some of the coordinates are within the cube.
I want to know whether there is some form of algorithm or formula that can analyse the coordinates and determine which of the coordinates make up the faces of the cube?
Thanks for the help in advance.
geometry coordinate-systems
edited Aug 16 at 9:52
asked Aug 16 at 9:18
user584683
A convex hull algorithm?
â Jaap Scherphuis
Aug 16 at 9:23
Is there any guarantee that your set of coordinates includes points from the sides and corners? If not, the cube won't be unique. Just think of four points in the plane that form a quadrilateral. You could wrap them with other quadrilaterals. In the result, the coordinates would not longer be corners of the quadrilateral. On the other hand, if you know that all corner-points are part of your coordinate set, then any convex hull algorithm will yield the faces.
â Babelfish
Aug 16 at 9:24
Yes, some of the points will be in the faces of the faces. The convex hull algorithm looks promising though.
â user584683
Aug 16 at 9:30
add a comment |Â
A convex hull algorithm?
â Jaap Scherphuis
Aug 16 at 9:23
Is there any guarantee that your set of coordinates includes points from the sides and corners? If not, the cube won't be unique. Just think of four points in the plane that form a quadrilateral. You could wrap them with other quadrilaterals. In the result, the coordinates would not longer be corners of the quadrilateral. On the other hand, if you know that all corner-points are part of your coordinate set, then any convex hull algorithm will yield the faces.
â Babelfish
Aug 16 at 9:24
Yes, some of the points will be in the faces of the faces. The convex hull algorithm looks promising though.
â user584683
Aug 16 at 9:30
A convex hull algorithm?
â Jaap Scherphuis
Aug 16 at 9:23
A convex hull algorithm?
â Jaap Scherphuis
Aug 16 at 9:23
Is there any guarantee that your set of coordinates includes points from the sides and corners? If not, the cube won't be unique. Just think of four points in the plane that form a quadrilateral. You could wrap them with other quadrilaterals. In the result, the coordinates would not longer be corners of the quadrilateral. On the other hand, if you know that all corner-points are part of your coordinate set, then any convex hull algorithm will yield the faces.
â Babelfish
Aug 16 at 9:24
Is there any guarantee that your set of coordinates includes points from the sides and corners? If not, the cube won't be unique. Just think of four points in the plane that form a quadrilateral. You could wrap them with other quadrilaterals. In the result, the coordinates would not longer be corners of the quadrilateral. On the other hand, if you know that all corner-points are part of your coordinate set, then any convex hull algorithm will yield the faces.
â Babelfish
Aug 16 at 9:24
Yes, some of the points will be in the faces of the faces. The convex hull algorithm looks promising though.
â user584683
Aug 16 at 9:30
Yes, some of the points will be in the faces of the faces. The convex hull algorithm looks promising though.
â user584683
Aug 16 at 9:30
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
It is very important to know, whether the set of coordinates (let's call it $C$) really contains corner-vertices. If not, the cube won't be unique (but you could search for a cube with minimal volume or something like that). See those 2D-pictures:
We see two possible "cubes" that realise the coordinates, though the middle picture really realises some coordinates as corners.
If you know that the $C$ contains all corners of the cube you search, then the cube is the convex hull of $C$. There is a well etablished set of algorithms which calculate the convex hull, as Jaap Scherphuis already pointed out.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
It is very important to know, whether the set of coordinates (let's call it $C$) really contains corner-vertices. If not, the cube won't be unique (but you could search for a cube with minimal volume or something like that). See those 2D-pictures:
We see two possible "cubes" that realise the coordinates, though the middle picture really realises some coordinates as corners.
If you know that the $C$ contains all corners of the cube you search, then the cube is the convex hull of $C$. There is a well etablished set of algorithms which calculate the convex hull, as Jaap Scherphuis already pointed out.
add a comment |Â
up vote
1
down vote
It is very important to know, whether the set of coordinates (let's call it $C$) really contains corner-vertices. If not, the cube won't be unique (but you could search for a cube with minimal volume or something like that). See those 2D-pictures:
We see two possible "cubes" that realise the coordinates, though the middle picture really realises some coordinates as corners.
If you know that the $C$ contains all corners of the cube you search, then the cube is the convex hull of $C$. There is a well etablished set of algorithms which calculate the convex hull, as Jaap Scherphuis already pointed out.
add a comment |Â
up vote
1
down vote
up vote
1
down vote
It is very important to know, whether the set of coordinates (let's call it $C$) really contains corner-vertices. If not, the cube won't be unique (but you could search for a cube with minimal volume or something like that). See those 2D-pictures:
We see two possible "cubes" that realise the coordinates, though the middle picture really realises some coordinates as corners.
If you know that the $C$ contains all corners of the cube you search, then the cube is the convex hull of $C$. There is a well etablished set of algorithms which calculate the convex hull, as Jaap Scherphuis already pointed out.
It is very important to know, whether the set of coordinates (let's call it $C$) really contains corner-vertices. If not, the cube won't be unique (but you could search for a cube with minimal volume or something like that). See those 2D-pictures:
We see two possible "cubes" that realise the coordinates, though the middle picture really realises some coordinates as corners.
If you know that the $C$ contains all corners of the cube you search, then the cube is the convex hull of $C$. There is a well etablished set of algorithms which calculate the convex hull, as Jaap Scherphuis already pointed out.
edited Aug 16 at 9:49
answered Aug 16 at 9:43
Babelfish
647115
647115
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2884576%2ffinding-the-faces-of-a-shape-from-coordinates%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
A convex hull algorithm?
â Jaap Scherphuis
Aug 16 at 9:23
Is there any guarantee that your set of coordinates includes points from the sides and corners? If not, the cube won't be unique. Just think of four points in the plane that form a quadrilateral. You could wrap them with other quadrilaterals. In the result, the coordinates would not longer be corners of the quadrilateral. On the other hand, if you know that all corner-points are part of your coordinate set, then any convex hull algorithm will yield the faces.
â Babelfish
Aug 16 at 9:24
Yes, some of the points will be in the faces of the faces. The convex hull algorithm looks promising though.
â user584683
Aug 16 at 9:30