Distance of a point from the closest surface
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
Consider the situation in which I have a cuboid:
Cuboid[0,0,0,1,1,1]
and a point in the cubiod
0.9,0.4,0.6
How do I find the distance from the closest surface of the cuboid?
geometry
add a comment |Â
up vote
3
down vote
favorite
Consider the situation in which I have a cuboid:
Cuboid[0,0,0,1,1,1]
and a point in the cubiod
0.9,0.4,0.6
How do I find the distance from the closest surface of the cuboid?
geometry
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
Consider the situation in which I have a cuboid:
Cuboid[0,0,0,1,1,1]
and a point in the cubiod
0.9,0.4,0.6
How do I find the distance from the closest surface of the cuboid?
geometry
Consider the situation in which I have a cuboid:
Cuboid[0,0,0,1,1,1]
and a point in the cubiod
0.9,0.4,0.6
How do I find the distance from the closest surface of the cuboid?
geometry
geometry
asked 38 mins ago
mattiav27
2,07011429
2,07011429
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
How about:
SignedRegionDistance[Cuboid[0, 0, 0, 1, 1, 1], 0.9, 0.4, 0.6]
-0.1
the negative sign tells you that the query point is inside the region.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
How about:
SignedRegionDistance[Cuboid[0, 0, 0, 1, 1, 1], 0.9, 0.4, 0.6]
-0.1
the negative sign tells you that the query point is inside the region.
add a comment |Â
up vote
3
down vote
How about:
SignedRegionDistance[Cuboid[0, 0, 0, 1, 1, 1], 0.9, 0.4, 0.6]
-0.1
the negative sign tells you that the query point is inside the region.
add a comment |Â
up vote
3
down vote
up vote
3
down vote
How about:
SignedRegionDistance[Cuboid[0, 0, 0, 1, 1, 1], 0.9, 0.4, 0.6]
-0.1
the negative sign tells you that the query point is inside the region.
How about:
SignedRegionDistance[Cuboid[0, 0, 0, 1, 1, 1], 0.9, 0.4, 0.6]
-0.1
the negative sign tells you that the query point is inside the region.
answered 29 mins ago
user21
18.1k44579
18.1k44579
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%2fmathematica.stackexchange.com%2fquestions%2f183350%2fdistance-of-a-point-from-the-closest-surface%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