{"id":3226,"date":"2009-09-10T21:15:58","date_gmt":"2009-09-10T12:15:58","guid":{"rendered":"http:\/\/leavebehind.iobb.net\/wordpress\/?p=3226"},"modified":"2009-09-10T21:15:58","modified_gmt":"2009-09-10T12:15:58","slug":"facebbox-ms","status":"publish","type":"post","link":"http:\/\/leavebehind.mydns.jp\/wordpress\/2009\/09\/10\/facebbox-ms\/","title":{"rendered":"faceBBox.ms"},"content":{"rendered":"<p>\u30a2\u30a4\u30c7\u30a2\u306e\u30b9\u30b1\u30c3\u30c1\u3067\u3059\u3002\u4f55\u306b\u4f7f\u3046\u3093\u3060\u3063\u3066\u611f\u3058\u3067\u3059\u304c\u3001<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/leavebehind.iobb.net\/wordpress\/wp-content\/uploads\/2009\/09\/faceBBox1.jpg\" alt=\"faceBBox1\" title=\"faceBBox1\" width=\"640\" height=\"400\" class=\"aligncenter size-full wp-image-3275\" \/><br \/>\n\u30e1\u30c3\u30b7\u30e5\u9762\u6bce\u306b\u30d0\u30a6\u30f3\u30c7\u30a3\u30f3\u30b0\u30dc\u30c3\u30af\u30b9\u3092\u751f\u6210\u3059\u308b\u3068\u3069\u3093\u306a\u611f\u3058\u306b\u306a\u308b\u304b\u3068\u601d\u3044\u3001\u3056\u3063\u304f\u308a\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d44\u3093\u3067\u898b\u307e\u3057\u305f\u3002\u3055\u3089\u306bLattice\u30e2\u30c7\u30a3\u30d5\u30a1\u30a4\u30e4\u3092\u9069\u7528\u3002<\/p>\n<p>\u30b9\u30ad\u30e3\u30c3\u30bf(\u3067\u3057\u305f\u3063\u3051\uff1f)\u3068\u304b\u3001PFlow\u4f7f\u3063\u3066\u3082\u4f3c\u305f\u3088\u3046\u306a\u3053\u3068\u306f\u51fa\u6765\u307e\u3059\u306d\u3002\u30dc\u30c3\u30af\u30b9\u81ea\u4f53\u306f\u59ff\u52e2\u3092\u4fdd\u3064\u306e\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u9069\u7528\u3059\u308c\u3070\u306a\u3093\u304b\u9762\u767d\u304f\u306a\u308b\u304b\u306a\u3002<\/p>\n<p>\u4f7f\u3044\u65b9\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4e00\u3064\u9078\u629e\u3057\u3066\u300c\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8d77\u52d5\u300d\u3067\u3059\u3002\u591a\u304f\u3066\u30823,000\u30dd\u30ea\u30b4\u30f3(\u4e09\u89d2\u3067\u30ab\u30a6\u30f3\u30c8)\u304f\u3089\u3044\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u9069\u7528\u306b\u3068\u3069\u3081\u3066\u304a\u3044\u305f\u65b9\u304c\u3044\u3044\u3067\u3059\u3002max9\u4e0a\u3067\u3057\u304b\u8a66\u3057\u3066\u307e\u305b\u3093\u306e\u3067\u304a\u6c17\u3092\u3064\u3051\u3066\u3002<br \/>\n<!--more--><\/p>\n<pre>\n-- faceBBox.ms\n-- Attention! Do not use this script with high mesh object.\n\nfreezeMesh = snapshotasmesh selection[1]\n\nnumOfFaces = getNumFaces freezeMesh\nfor faceIndex = 1 to numOfFaces do\n(\n\tvertexIndexPt3 = getFace freezeMesh faceIndex\n\t\n\tvtx1 = getVert freezeMesh vertexIndexPt3.x\n\tvtx2 = getVert freezeMesh vertexIndexPt3.y\n\tvtx3 = getVert freezeMesh vertexIndexPt3.z\n\t\n\txArray = #(vtx1.x , vtx2.x , vtx3.x)\n\tyArray = #(vtx1.y , vtx2.y , vtx3.y)\n\tzArray = #(vtx1.z , vtx2.z , vtx3.z)\n\t\n\tBBoxMax = point3 (amax xArray) (amax yArray) (amax zArray)\n\tBBoxMin = point3 (amin xArray) (amin yArray) (amin zArray)\n\t\n\tmyBox = box width:(BBoxMax.x - BBoxMin.x) \\\n\t\tlength:(BBoxMax.y - BBoxMin.y) \\\n\t\theight:(BBoxMax.z - BBoxMin.z)\n\t\n\tfaceCenter = meshop.getFaceCenter freezeMesh faceIndex\n\tmyBox.center = faceCenter\n\t\n\tformat \"face:\\t%\/%\\n\" faceIndex numOfFaces\n)\ndelete freezeMesh\n<\/pre>\n<p>\u4e0a\u3067\u4f7f\u3063\u3066\u3044\u308bgetFace\u30e1\u30bd\u30c3\u30c9\u3001\u3042\u308b\u9762\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b\u9802\u70b9\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u53d6\u5f97\u3059\u308b\u3082\u306e\u3067\u3059\u304c\u3001\u666e\u901a\u3001\u6574\u6570\u306e\u914d\u5217\u3067\u8fd4\u3063\u3066\u304f\u308b\u3068\u601d\u3044\u304d\u3084\u4f55\u6545\u304bPoint3\u3067\u3059\u3002\u4e09\u89d2\u30dd\u30ea\u30b4\u30f3\u306e\u9802\u70b9\u3060\u304b\u30893\u3064\u306e\u6570\u304c\u5165\u308c\u3070\u3044\u3044\u3068\u306f\u3044\u3048\u3001Point3\u3063\u30663\u6b21\u5143\u30d9\u30af\u30c8\u30eb\u7528\u3067\u3057\u3087\u3046\uff1f<br \/>\n\u540c\u3058\u6a5f\u80fd\u3092\u3082\u3064\u30e1\u30bd\u30c3\u30c9\u3067\u300cmeshop.getVertsUsingFace\u300d\u3068\u8a00\u3046\u306e\u304c\u3042\u308a\u307e\u3059\u3002\u8a66\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3053\u3061\u3089\u306f\u3061\u3083\u3093\u3068bitArray\u3067\u8fd4\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>maxscript\u5927\u5acc\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/leavebehind.iobb.net\/wordpress\/wp-content\/uploads\/2009\/09\/faceBBoxA.jpg\" alt=\"faceBBoxA\" title=\"faceBBoxA\" width=\"640\" height=\"360\" class=\"aligncenter size-full wp-image-3225\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/leavebehind.iobb.net\/wordpress\/wp-content\/uploads\/2009\/09\/faceBBoxB.jpg\" alt=\"faceBBoxB\" title=\"faceBBoxB\" width=\"640\" height=\"360\" class=\"aligncenter size-full wp-image-3224\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a2\u30a4\u30c7\u30a2\u306e\u30b9\u30b1\u30c3\u30c1\u3067\u3059\u3002\u4f55\u306b\u4f7f\u3046\u3093\u3060\u3063\u3066\u611f\u3058\u3067\u3059\u304c\u3001 \u30e1\u30c3\u30b7\u30e5\u9762\u6bce\u306b\u30d0\u30a6\u30f3\u30c7\u30a3\u30f3\u30b0\u30dc\u30c3\u30af\u30b9\u3092\u751f\u6210\u3059\u308b\u3068\u3069\u3093\u306a\u611f\u3058\u306b\u306a\u308b\u304b\u3068\u601d\u3044\u3001\u3056\u3063\u304f\u308a\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d44\u3093\u3067\u898b\u307e\u3057\u305f\u3002\u3055\u3089\u306bLattice\u30e2\u30c7\u30a3\u30d5\u30a1\u30a4\u30e4\u3092\u9069\u7528\u3002 \u30b9\u30ad\u30e3\u30c3\u30bf( [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5,8],"tags":[32,174],"class_list":["post-3226","post","type-post","status-publish","format-standard","hentry","category-cg","category-maxscript","tag-3dsmax","tag-maxscript"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p8YSE4-Q2","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts\/3226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=3226"}],"version-history":[{"count":0,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts\/3226\/revisions"}],"wp:attachment":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=3226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=3226"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=3226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}