I have an array of thousands of quads; 4-sided 3D polygons. All I know is the coordinates of the quadrangles.
A subset of these squares defines a closed outer shell of three-dimensional shape. The rest of the ATVs are inside this closed solid.
How can I determine which ATVs are part of the shell and which squares are part of the interior? This is not a critical performance code.
Edit: additional shell shape restrictions
It can be difficult to realize if your figure crosses itself, but if you can find one square that you know is on the surface (perhaps one of the most distant from the center of gravity), then draw concentric circles around it. Then find a continuous ring of quadrants outside this and so on until you find yourself on the “opposite” side. If your squares intersect or are connected to each other, then this is more difficult. I would try to break those that intersect, then find all possible smooth surfaces and choose the one with the largest internal volume.
How about this?
( "" ). . , , - . .
, "" .
, . , .
, . , , :
, , , .
, , . - , .
: . , , :
: , , , . .
, . . ; , , .
, , .
, . . (.. ) , ( 2D-, " " ). " ". , , ( , ). , - . , , . " ", "shell".
( , ..) . , . .
. . , , , . , " " . , . , . , , , .
Source: https://habr.com/ru/post/1759206/More articles:How to cancel Android notifications? - androidProgrammatic search + replacement in .doc - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1759203/how-to-apply-css-to-aspfileupload-control&usg=ALkJrhjEcv092puPgHmMtfdAzOe163rOIwPulling data for next / previous months - jquerystyle drop-down lists (select) - cssAre ASP.Net control identifiers for SEO and page size? - c #The Zend_Validate_File_IsImage validator is not working correctly - phpGridview row throws error - c #Connecting my Android phone to DDMS SDK utility - androidJava Host Architecture Architecture - javaAll Articles