{"id":350,"date":"2014-12-25T01:35:59","date_gmt":"2014-12-24T17:35:59","guid":{"rendered":"http:\/\/www.hightopo.com\/blog\/?p=350"},"modified":"2014-12-25T02:10:22","modified_gmt":"2014-12-24T18:10:22","slug":"%e5%9f%ba%e4%ba%8eht%e7%9a%84csg%e5%8a%9f%e8%83%bd%e6%9e%84%e5%bb%bahtml5%e7%9a%843d%e4%b9%a6%e6%9e%b6","status":"publish","type":"post","link":"https:\/\/www.hightopo.com\/blog\/350.html","title":{"rendered":"\u57fa\u4e8eHT\u7684CSG\u529f\u80fd\u6784\u5efaHTML5\u76843D\u4e66\u67b6"},"content":{"rendered":"<p>\u6784\u9020\u5b9e\u4f53\u51e0\u4f55<a href=\"http:\/\/en.wikipedia.org\/wiki\/Constructive_solid_geometry\">CSG<\/a>\u5168\u79f0<a href=\"http:\/\/en.wikipedia.org\/wiki\/Constructive_solid_geometry\">Constructive solid geometry<\/a>\uff0c\u662f3D\u8ba1\u7b97\u673a\u56fe\u5f62\u5b66\u4e2d\u6784\u5efa\u6a21\u578b\u7684\u5e38\u7528\u6280\u672f\uff0c\u53ef\u901a\u8fc7\u5408\u5e76Union\u3001\u76f8\u51cfSubtraction\u548c\u76f8\u4ea4Intersction\u7684\u4e09\u79cd\u53d6\u96c6\u7684\u903b\u8f91\u8fd0\u7b97\uff0c\u5c06\u7acb\u65b9\u4f53\u3001\u5706\u67f1\u4f53\u548c\u68f1\u67f1\u7b49\u7b80\u5355\u7684\u57fa\u7840\u6a21\u578b\uff0c\u5d4c\u5957\u7ec4\u5408\u6210\u66f4\u590d\u6742\u4e09\u7ef4\u6a21\u578b\u3002<\/p>\n<p>CSG\u7684\u7b97\u6cd5\u8fd9\u4e9b\u5e74\u6765\u5df2\u6709\u5404\u79cd\u8bed\u8a00\u5e73\u53f0\u7248\u672c\u5b9e\u73b0\uff0cC++\u7248\u4e3b\u6d41\u7684\u662f\u00a0<a href=\"http:\/\/opencsg.org\/\">http:\/\/opencsg.org\/<\/a>\u00a0\u5df2\u6709\u4f17\u591a\u57fa\u4e8e\u8be5\u5f00\u6e90\u7c7b\u5e93\u7684\u5e94\u7528\u6848\u4f8b\uff0cJavaScript\u8bed\u8a00\u8f83\u65e9\u7248\u5b9e\u73b0\u00a0<a href=\"http:\/\/evanw.github.io\/csg.js\/\">http:\/\/evanw.github.io\/csg.js\/<\/a>\u00a0\u5f71\u54cd\u8f83\u5e7f\uff0c\u5f88\u591a\u5176\u4ed6js\u884d\u751f\u7248\u90fd\u662f\u57fa\u4e8e\u8be5\u7248\u672c\u8fdb\u884c\u6539\u8fdb\u5b8c\u5584\uff0c\u5305\u62ecJava\u7248\u7684\u5b9e\u73b0\u00a0<a href=\"https:\/\/github.com\/miho\/JCSG\">https:\/\/github.com\/miho\/JCSG<\/a>\u00a0\uff0c\u53ef\u53c2\u8003\u57fa\u4e8eJavaFX\u76843D\u6253\u5370IDE\u00a0<a href=\"https:\/\/github.com\/miho\/JFXScad\">https:\/\/github.com\/miho\/JFXScad<\/a>\u00a0\uff0c\u63d0\u8d77JavaFX\u89c6\u4e4e\u8fd9\u4e9b\u5e74\u5b8c\u5168\u6d88\u5931\u5728\u7a0b\u5e8f\u5458\u89c6\u91ce\u6beb\u65e0\u58f0\u606f\uff0c\u4f46\u8fd8\u662f\u6709\u4e00\u7fa4\u62e5\u62a4\u8005\u6301\u7eed\u5728\u4f7f\u7528\u7740\u5982\u4eca\u5730\u4f4d\u6709\u70b9\u5c34\u5c2c\u7684JavaFX\u3002<\/p>\n<p><a href=\"http:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.19.17-AM.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-352\" alt=\"Screen Shot 2014-12-25 at 12.19.17 AM\" src=\"http:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.19.17-AM.png\" width=\"954\" height=\"653\" srcset=\"https:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.19.17-AM.png 954w, https:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.19.17-AM-300x205.png 300w, https:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.19.17-AM-200x136.png 200w\" sizes=\"(max-width: 954px) 100vw, 954px\" \/><\/a><\/p>\n<p>\u56de\u5230\u6211\u4eec\u4eca\u5929\u8981\u641e\u76843D\u4e66\u67b6\u4f8b\u5b50\uff0c\u6211\u4eec\u5c06\u57fa\u4e8e<a href=\"http:\/\/www.hightopo.com\/\">HT for Web<\/a>\u76843D\u5f15\u64ce\u6765\u5b9e\u73b0\uff0c<a href=\"http:\/\/www.hightopo.com\/\">HT<\/a>\u5df2\u7ecf\u5185\u7f6e\u4e86CSG\u529f\u80fd\u7684\u6a21\u578b\u5c01\u88c5\uff0c\u6211\u4eec\u901a\u8fc7\u6784\u5efaCSGNode\u56fe\u5143\u5bf9\u8c61\uff0c\u8be5\u7c7b\u578b\u56fe\u5143\u53ef\u5bf9Host\u5438\u9644\u7684\u56fe\u5143\u8fdb\u884cCSG\u6280\u672f\u7684\u5408\u96c6\u3001\u5e76\u96c6\u548c\u8865\u96c6\u7684\u4e09\u79cd\u64cd\u4f5c\uff0c\u4e00\u822c\u8fd0\u7528\u4e2d\u88c1\u526a\u7684\u65b9\u5f0f\u8f83\u4e3a\u5e38\u7528\uff0c\u56e0\u6b64CSGNode\u9ed8\u8ba4\u5bf9Host\u56fe\u5143\u7684\u64cd\u4f5c\u5c31\u662f\u88c1\u526a\u3002<\/p>\n<p>\u4e0a\u56fe\u7684\u4f8b\u5b50\u6548\u679c\u53ef\u770b\u51fa\u6211\u4eec\u6784\u5efa\u4e86\u4e00\u4e2a<a href=\"http:\/\/www.hightopo.com\/\">DataModel<\/a>\u6570\u636e\u6a21\u578b\uff0c\u8be5\u6a21\u578b\u7ed1\u5b9a\u4e86\u4e00\u4e2a<a href=\"http:\/\/www.hightopo.com\/\">TreeView<\/a>\u6811\u7ec4\u4ef6\u548c\u4e24\u4e2a<a href=\"http:\/\/www.hightopo.com\/\">Graph3dView<\/a>\u7684\u4e09\u7ef4\u7ec4\u4ef6\uff0c\u4e0a\u90e8\u5206\u7684Graph3dView\u7ec4\u4ef6\u6dfb\u52a0\u4e86VisibleFunc\u7684\u53ef\u89c1\u8fc7\u6ee4\u5668\uff0c\u9690\u85cf\u4e86\u5982\u4e0b\u90e8\u5206\u7684Graph3dView\u4e2d\u84dd\u8272\u7acb\u65b9\u4f53\u56fe\u5143\uff0c\u8fd9\u4e9b\u84dd\u8272\u7acb\u65b9\u4f53\u56fe\u5143\u5c31\u662fCSGNode\uff0c\u5176\u4f5c\u7528\u5c31\u662f\u7528\u6765\u88c1\u526a\u5176\u5438\u9644\u7684\u4e66\u67b6Shelf\u5bf9\u8c61\uff0c\u56e0\u6b64\u4e00\u822c\u57283D\u7f16\u8f91\u5668\u72b6\u6001\u4e0b\u624d\u9700\u8981\u51fa\u73b0\uff0c\u8fd0\u884c\u65f6\u79d1\u5982\u4e0a\u90e8\u5206Graph3dView\u7ec4\u4ef6\u90a3\u6837\uff0c\u901a\u8fc7\u6dfb\u52a0\u53ef\u89c1\u8fc7\u6ee4\u5668\u5c06\u5176\u9690\u85cf\uff0c\u8fd9\u6837\u5c31\u5b9e\u73b0\u4e86\u6709\u51f9\u69fd\u53ef\u6446\u653e\u4e66\u7c4d\u5185\u5bb9\u76843D\u4e66\u67b6\u6548\u679c\uff0c\u672c\u4f8b\u6211\u4eec\u4f5c\u4e3a\u793a\u4f8b\u4ec5\u653e\u4e86\u4e00\u672c\u300aCSS3 \u00a0The Missing Manual\u300b\uff0c\u8fd9\u672c\u4e66\u5176\u5b9e\u662f\u7531\u4e00\u4e2a\u516d\u9762\u4f53\uff0cfront\u9762\u663e\u793a\u4e86\u4e66\u7c4d\u8d34\u56fe\uff0c\u7136\u540e\u65cb\u8f6c\u4e00\u5b9a\u89d2\u5ea6\u8fdb\u884c\u6446\u653e\uff0cbtw\u300aCSS3 \u00a0The Missing Manual\u300b\u7b2c\u4e09\u7248\u662f\u672c\u5f88\u4e0d\u9519\u7684CSS\u4e66\u7c4d\uff0c\u5f3a\u70c8\u63a8\u8350\uff01<\/p>\n<p><a href=\"http:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.22.57-AM.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-353\" alt=\"Screen Shot 2014-12-25 at 12.22.57 AM\" src=\"http:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.22.57-AM.png\" width=\"740\" height=\"716\" srcset=\"https:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.22.57-AM.png 740w, https:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.22.57-AM-300x290.png 300w, https:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.22.57-AM-200x193.png 200w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/p>\n<p>\u4e66\u67b6\u4e24\u8fb9\u5206\u522b\u6446\u653e\u4e86\u4e24\u4e2a\u4e0d\u540c\u98ce\u683c\u7684\u5c0f\u4e66\u53f0\uff0c\u901a\u8fc7\u4e0a\u56fe\u6211\u62d6\u62fd\u6539\u53d8\u4e86\u84dd\u8272CSGNode\u56fe\u5143\u7684\u4f4d\u7f6e\uff0c\u5927\u5bb6\u901a\u8fc7\u4e24\u5f20\u56fe\u7684\u5bf9\u6bd4\u80fd\u66f4\u76f4\u89c2\u7684\u4f53\u4f1a\u5230CSG\u7684\u64cd\u4f5c\u6548\u679c\uff0c\u73bb\u7483\u95e8\u5f00\u5173\u4ee5\u53ca\u76f8\u518c\u6548\u679c\u90fd\u662f\u76f4\u63a5\u5229\u7528<a href=\"http:\/\/www.hightopo.com\/\">HT for Web<\/a>\u76843D\u5f15\u64ce\u63d0\u4f9b\u7684\u6a21\u578b\uff0c\u901a\u8fc7\u8bbe\u7f6e\u900f\u660e\u5ea6\u3001\u76f8\u7247\u8d34\u56fe\u548c\u65cb\u8f6c\u52a8\u753b\u7b49\u5462\u53ea\u529f\u80fd\u53c2\u6570\u5373\u53ef\u3002<br \/>\n<iframe loading=\"lazy\" src=\"http:\/\/player.youku.com\/embed\/XODU2MTQ4NjI4\" height=\"498\" width=\"510\" allowfullscreen=\"\" frameborder=\"0\"><\/iframe><br \/>\n\u4ee5\u4e0b\u662f\u8be5<a href=\"http:\/\/www.hightopo.com\/\">HT for Web<\/a>\u76843D\u4f8b\u5b50\u7684\u6240\u6709JavaScript\u4ee3\u7801\u4f9b\u53c2\u8003\uff1a<a href=\"http:\/\/v.youku.com\/v_show\/id_XODU2MTQ4NjI4.html\">http:\/\/v.youku.com\/v_show\/id_XODU2MTQ4NjI4.html<\/a><\/p>\n<pre class=\"&quot;brush:javascript\u201d\">ht.Default.setImage('ben12', {\r\n\twidth: 100,\r\n\theight: 50,\r\n\tcomps: [\r\n\t\t{\r\n\t\t\ttype: 'image',\r\n\t\t\tname: 'ben1',\r\n\t\t\trect: [0, 0, 50, 50]\r\n\t\t},\r\n\t\t{\r\n\t\t\ttype: 'image',\r\n\t\t\tname: 'ben2',\r\n\t\t\trect: [50, 0, 50, 50]\r\n\t\t}\r\n\t]                \r\n});            \r\n\r\nfunction init(){                                 \r\n\tdm = new ht.DataModel();                \r\n\ttreeView = new ht.widget.TreeView(dm);                                                                                                 \r\n\tgv1 = new ht.graph3d.Graph3dView(dm);   \r\n\tgv2 = new ht.graph3d.Graph3dView(dm);   \r\n\tsplitView = new ht.widget.SplitView(gv1, gv2, 'v', 0.6);   \r\n\tmainSplit = new ht.widget.SplitView(treeView, splitView, 'h', 0.27);   \r\n\r\n\tview = mainSplit.getView();  \r\n\tview.className = 'main';\r\n\tdocument.body.appendChild(view);    \r\n\twindow.addEventListener('resize', function (e) {\r\n\t\tmainSplit.invalidate();\r\n\t}, false);                         \r\n\r\n\tgv1.setMoveStep(30);\r\n\tgv1.setGridVisible(true); \r\n\tgv1.setEye(0, 100, 1000);\r\n\tgv1.setCenter(0, 200, 0);\r\n\tgv1.pan(0, 100, true);\r\n\tgv1.getLabel = function(){\r\n\t\treturn null;\r\n\t};\r\n\tgv1.getBrightness = function(data){\r\n\t\treturn null;\r\n\t};\r\n\tgv1.setVisibleFunc(function(data){\r\n\t\tif(data.showMe){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif(data instanceof ht.CSGNode &amp;&amp; data.getHost()){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t});\r\n\r\n\tgv2.setMoveStep(30);\r\n\tgv2.setEditable(true);\r\n\tgv2.setGridVisible(true); \r\n\tgv2.setEditable(true);\r\n\tgv2.pan(0, 200, true);\r\n\tgv2.getLabel = function(){\r\n\t\treturn null;\r\n\t};                \r\n\r\n\tinitShelf1();                       \r\n\tinitShelf2();                       \r\n\tinitShelf3();                       \r\n\r\n\ttreeView.expandAll();\r\n\r\n\tvar angle = 0;\r\n\tsetInterval(function(){\r\n\t\tangle += Math.PI\/40;\r\n\t\tearth.r3(0, angle, 0);\r\n\t\tphotos.s('dw.angle', angle);\r\n\t}, 50);                 \r\n}            \r\n\r\nfunction initShelf1(){\r\n\tvar shelf = new ht.CSGNode();\r\n\tshelf.s3(500, 400, 120);\r\n\tshelf.p3(0, 200, 0);\r\n\tshelf.setName('shelf1');\r\n\tshelf.s({\r\n\t\t'all.color': '#E5BB77'\r\n\t});\r\n\tdm.add(shelf);\r\n\r\n\tfor(var i=0; i&lt;2; i++){\r\n\t\tfor(var j=0; j&lt;5; j++){\r\n\t\t\tvar clipNode = new ht.CSGNode();\r\n\t\t\tclipNode.setHost(shelf);\r\n\t\t\tclipNode.s3(80, 100, 120);\r\n\t\t\tclipNode.p3(-200+j*100, 340-i*120, 20);\r\n\t\t\tclipNode.setName('substract-'+i+'-'+j);\r\n\t\t\tclipNode.s('batch', 'tt');\r\n\t\t\tclipNode.setParent(shelf);\r\n\t\t\tdm.add(clipNode);\r\n\t\t}\r\n\t}\r\n\r\n\tvar leftNode = new ht.CSGNode();\r\n\tleftNode.setHost(shelf);\r\n\tleftNode.s3(23, 380, 100);\r\n\tleftNode.p3(-255, 200, 0);\r\n\tleftNode.setName('substract left');\r\n\tleftNode.setParent(shelf);\r\n\tdm.add(leftNode);\r\n\r\n\tvar rightNode = new ht.CSGNode();\r\n\trightNode.setHost(shelf);\r\n\trightNode.s3(23, 380, 100);\r\n\trightNode.p3(255, 200, 0);\r\n\trightNode.setName('substract right');\r\n\trightNode.setParent(shelf);\r\n\tdm.add(rightNode);\r\n\r\n\tvar bottomNode = new ht.CSGNode();\r\n\tbottomNode.setHost(shelf);\r\n\tbottomNode.s3(480, 140, 140);\r\n\tbottomNode.p3(0, 80, 0);\r\n\tbottomNode.setName('substract bottom');\r\n\tbottomNode.setParent(shelf);\r\n\tdm.add(bottomNode);  \r\n\r\n\tvar topNode = new ht.CSGNode();\r\n\ttopNode.setHost(shelf);\r\n\ttopNode.s3(480, 10, 100);\r\n\ttopNode.p3(0, 400, 0);\r\n\ttopNode.setName('union top');\r\n\ttopNode.s('attach.operation', 'union');\r\n\ttopNode.setParent(shelf);\r\n\tdm.add(topNode);  \r\n\r\n\tvar book = new ht.Node();\r\n\tbook.setName('CSS3: The Missing Manual');\r\n\tbook.s3(60, 80, 8);\r\n\tbook.p3(-100, 210, 20);\r\n\tbook.r3(-Math.PI\/6, Math.PI\/5, 0);\r\n\tbook.setIcon('book');\r\n\tbook.s({\r\n\t\t'front.image': 'book',\r\n\t\t'back.color': 'white',\r\n\t\t'left.color': 'white',\r\n\t\t'all.color': 'gray'\r\n\t});\r\n\tbook.setHost(shelf);\r\n\tbook.setParent(shelf);\r\n\tdm.add(book);                                \r\n\r\n}\r\n\r\nfunction initShelf2(){                \r\n\tvar shelf = new ht.CSGNode();\r\n\tshelf.s3(120, 240, 120);\r\n\tshelf.p3(0, 120, 0);\r\n\tshelf.setName('shelf2');\r\n\tshelf.s({\r\n\t\t'all.color': '#805642',\r\n\t\t'csg.color': 'yellow',\r\n\t\t'csg.reverse.flip': true\r\n\t});\r\n\tdm.add(shelf);\r\n\r\n\tvar clipNode = new ht.CSGNode();\r\n\tclipNode.setName('shelf2-substract-up');\r\n\tclipNode.s3(100, 100, 130);\r\n\tclipNode.p3(0, 180, 0);\r\n\tclipNode.setHost(shelf);\r\n\tclipNode.s('attach.cull', true);\r\n\tclipNode.setParent(shelf);\r\n\tdm.add(clipNode);\r\n\r\n\tclipNode = new ht.CSGBox();\r\n\tclipNode.setName('CSGBox-Expand-Left');\r\n\tclipNode.s3(100, 100, 120);\r\n\tclipNode.p3(0, 65, 0.1);\r\n\tclipNode.setHost(shelf);\r\n\tclipNode.showMe = true;\r\n\tclipNode.s({\r\n\t\t'all.visible': false,\r\n\t\t'front.visible': true,\r\n\t\t'front.toggleable': true,                    \r\n\t\t'front.reverse.flip': true,\r\n\t\t'front.transparent': true,\r\n\t\t'front.end': Math.PI * 0.7,\r\n\t\t'front.color': 'rgba(0, 50, 50, 0.7)'\r\n\t});\r\n\tclipNode.setParent(shelf);\r\n\tclipNode.setFaceExpanded('front', true, true);\r\n\tdm.add(clipNode);                \r\n\r\n\tearth = new ht.Node();\r\n\tearth.setName('earth');\r\n\tearth.setIcon('earth');\r\n\tearth.s3(70, 70, 70);\r\n\tearth.p3(0, 50, 0);\r\n\tearth.s({\r\n\t\t'shape3d': 'sphere',\r\n\t\t'shape3d.image': 'earth'\r\n\t});\r\n\tearth.setHost(shelf);  \r\n\tearth.setParent(shelf);\r\n\tdm.add(earth);\r\n\r\n\tshelf.t3(-360, 0, 50);\r\n\tshelf.r3(0, Math.PI\/7, 0);                               \r\n}            \r\n\r\nfunction initShelf3(){                \r\n\tvar shelf = new ht.CSGNode();\r\n\tshelf.s3(120, 240, 120);\r\n\tshelf.p3(0, 120, 0);\r\n\tshelf.setName('shelf3');\r\n\tshelf.setIcon('ben');\r\n\tshelf.s({\r\n\t\t'all.image': 'brick',\r\n\t\t'all.uv.scale': [2, 4],\r\n\t\t'top.uv.scale': [2, 2],\r\n\t\t'bottom.uv.scale': [2, 2],                                                             \r\n\t\t'csg.image': 'ben',\r\n\t\t'csg.blend': 'yellow'\r\n\t});\r\n\tdm.add(shelf);\r\n\r\n\tphotos = new ht.DoorWindow();\r\n\tphotos.setName('DoorWindow-Photos');\r\n\tphotos.setIcon('ben12');\r\n\tphotos.s3(110, 100, 130);\r\n\tphotos.p3(5, 180, 0);                \r\n\tphotos.setHost(shelf);  \r\n\tphotos.showMe = true;\r\n\tphotos.s({                    \r\n\t\t'bottom.uv': [1,1, 1,0, 0,0, 0,1],\r\n\t\t'bottom.uv.scale': [1, 1],\r\n\t\t'left.uv.scale': [3, 3],\r\n\t\t'top.uv.scale': [2, 2],\r\n\t\t'dw.s3': [0.8, 0.9, 0.05],\r\n\t\t'dw.t3': [0, -5, 0],\r\n\t\t'dw.axis': 'v',\r\n\t\t'dw.toggleable': false,\r\n\t\t'front.image': 'ben1',\r\n\t\t'back.image': 'ben2',\r\n\t\t'all.color': '#F8CE8B'\r\n\t});\r\n\tphotos.setParent(shelf);\r\n\tdm.add(photos);\r\n\r\n\tvar clipNode = new ht.CSGBox();\r\n\tclipNode.setName('CSGBox-Expand-Top');\r\n\tclipNode.s3(100, 100, 120);\r\n\tclipNode.p3(0, 65, 0.1);\r\n\tclipNode.setHost(shelf);\r\n\tclipNode.showMe = true;\r\n\tclipNode.s({                    \r\n\t\t'all.visible': false,\r\n\t\t'front.visible': true,\r\n\t\t'front.color': 'red',\r\n\t\t'front.transparent': true,\r\n\t\t'front.opacity': 0.7,                    \r\n\t\t'front.reverse.flip': true,\r\n\t\t'front.toggleable': true,                                        \r\n\t\t'front.axis': 'top',\r\n\t\t'front.end': Math.PI * 0.4\r\n\t});\r\n\tclipNode.setParent(shelf);\r\n\tclipNode.setFaceExpanded('front', true, true);\r\n\tdm.add(clipNode);                \r\n\r\n\tshelf.t3(360, 0, 50);\r\n\tshelf.r3(0, -Math.PI\/7, 0);\r\n\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6784\u9020\u5b9e\u4f53\u51e0\u4f55<a href=\"http:\/\/en.wikipedia.org\/wiki\/Constructive_solid_geometry\">CSG<\/a>\u5168\u79f0<a href=\"http:\/\/en.wikipedia.org\/wiki\/Constructive_solid_geometry\">Constructive solid geometry<\/a>\uff0c\u662f3D\u8ba1\u7b97\u673a\u56fe\u5f62\u5b66\u4e2d\u6784\u5efa\u6a21\u578b\u7684\u5e38\u7528\u6280\u672f\uff0c\u53ef\u901a\u8fc7\u5408\u5e76Union\u3001\u76f8\u51cfSubtraction\u548c\u76f8\u4ea4Intersction\u7684\u4e09\u79cd\u53d6\u96c6\u7684\u903b\u8f91\u8fd0\u7b97\uff0c\u5c06\u7acb\u65b9\u4f53\u3001\u5706\u67f1\u4f53\u548c\u68f1\u67f1\u7b49\u7b80\u5355\u7684\u57fa\u7840\u6a21\u578b\uff0c\u5d4c\u5957\u7ec4\u5408\u6210\u66f4\u590d\u6742\u4e09\u7ef4\u6a21\u578b\u3002<\/p>\n<p>CSG\u7684\u7b97\u6cd5\u8fd9\u4e9b\u5e74\u6765\u5df2\u6709\u5404\u79cd\u8bed\u8a00\u5e73\u53f0\u7248\u672c\u5b9e\u73b0\uff0cC++\u7248\u4e3b\u6d41\u7684\u662f\u00a0<a href=\"http:\/\/opencsg.org\/\">http:\/\/opencsg.org\/<\/a>\u00a0\u5df2\u6709\u4f17\u591a\u57fa\u4e8e\u8be5\u5f00\u6e90\u7c7b\u5e93\u7684\u5e94\u7528\u6848\u4f8b\uff0cJavaScript\u8bed\u8a00\u8f83\u65e9\u7248\u5b9e\u73b0\u00a0<a href=\"http:\/\/evanw.github.io\/csg.js\/\">http:\/\/evanw.github.io\/csg.js\/<\/a>\u00a0\u5f71\u54cd\u8f83\u5e7f\uff0c\u5f88\u591a\u5176\u4ed6js\u884d\u751f\u7248\u90fd\u662f\u57fa\u4e8e\u8be5\u7248\u672c\u8fdb\u884c\u6539\u8fdb\u5b8c\u5584\uff0c\u5305\u62ecJava\u7248\u7684\u5b9e\u73b0\u00a0<a href=\"https:\/\/github.com\/miho\/JCSG\">https:\/\/github.com\/miho\/JCSG<\/a>\u00a0\uff0c\u53ef\u53c2\u8003\u57fa\u4e8eJavaFX\u76843D\u6253\u5370IDE\u00a0<a href=\"https:\/\/github.com\/miho\/JFXScad\">https:\/\/github.com\/miho\/JFXScad<\/a>\u00a0\uff0c\u63d0\u8d77JavaFX\u89c6\u4e4e\u8fd9\u4e9b\u5e74\u5b8c\u5168\u6d88\u5931\u5728\u7a0b\u5e8f\u5458\u89c6\u91ce\u6beb\u65e0\u58f0\u606f\uff0c\u4f46\u8fd8\u662f\u6709\u4e00\u7fa4\u62e5\u62a4\u8005\u6301\u7eed\u5728\u4f7f\u7528\u7740\u5982\u4eca\u5730\u4f4d\u6709\u70b9\u5c34\u5c2c\u7684JavaFX\u3002<\/p>\n<p><a href=\"http:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.19.17-AM.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-352\" alt=\"Screen Shot 2014-12-25 at 12.19.17 AM\" src=\"http:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.19.17-AM.png\" width=\"954\" height=\"653\" srcset=\"https:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.19.17-AM.png 954w, https:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.19.17-AM-300x205.png 300w, https:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.19.17-AM-200x136.png 200w\" sizes=\"(max-width: 954px) 100vw, 954px\" \/><\/a><\/p>\n<p>\u56de\u5230\u6211\u4eec\u4eca\u5929\u8981\u641e\u76843D\u4e66\u67b6\u4f8b\u5b50\uff0c\u6211\u4eec\u5c06\u57fa\u4e8e<a href=\"http:\/\/www.hightopo.com\/\">HT for Web<\/a>\u76843D\u5f15\u64ce\u6765\u5b9e\u73b0\uff0c<a href=\"http:\/\/www.hightopo.com\/\">HT<\/a>\u5df2\u7ecf\u5185\u7f6e\u4e86CSG\u529f\u80fd\u7684\u6a21\u578b\u5c01\u88c5\uff0c\u6211\u4eec\u901a\u8fc7\u6784\u5efaCSGNode\u56fe\u5143\u5bf9\u8c61\uff0c\u8be5\u7c7b\u578b\u56fe\u5143\u53ef\u5bf9Host\u5438\u9644\u7684\u56fe\u5143\u8fdb\u884cCSG\u6280\u672f\u7684\u5408\u96c6\u3001\u5e76\u96c6\u548c\u8865\u96c6\u7684\u4e09\u79cd\u64cd\u4f5c\uff0c\u4e00\u822c\u8fd0\u7528\u4e2d\u88c1\u526a\u7684\u65b9\u5f0f\u8f83\u4e3a\u5e38\u7528\uff0c\u56e0\u6b64CSGNode\u9ed8\u8ba4\u5bf9Host\u56fe\u5143\u7684\u64cd\u4f5c\u5c31\u662f\u88c1\u526a\u3002<\/p>\n<p>\u4e0a\u56fe\u7684\u4f8b\u5b50\u6548\u679c\u53ef\u770b\u51fa\u6211\u4eec\u6784\u5efa\u4e86\u4e00\u4e2a<a href=\"http:\/\/www.hightopo.com\/\">DataModel<\/a>\u6570\u636e\u6a21\u578b\uff0c\u8be5\u6a21\u578b\u7ed1\u5b9a\u4e86\u4e00\u4e2a<a href=\"http:\/\/www.hightopo.com\/\">TreeView<\/a>\u6811\u7ec4\u4ef6\u548c\u4e24\u4e2a<a href=\"http:\/\/www.hightopo.com\/\">Graph3dView<\/a>\u7684\u4e09\u7ef4\u7ec4\u4ef6\uff0c\u4e0a\u90e8\u5206\u7684Graph3dView\u7ec4\u4ef6\u6dfb\u52a0\u4e86VisibleFunc\u7684\u53ef\u89c1\u8fc7\u6ee4\u5668\uff0c\u9690\u85cf\u4e86\u5982\u4e0b\u90e8\u5206\u7684Graph3dView\u4e2d\u84dd\u8272\u7acb\u65b9\u4f53\u56fe\u5143\uff0c\u8fd9\u4e9b\u84dd\u8272\u7acb\u65b9\u4f53\u56fe\u5143\u5c31\u662fCSGNode\uff0c\u5176\u4f5c\u7528\u5c31\u662f\u7528\u6765\u88c1\u526a\u5176\u5438\u9644\u7684\u4e66\u67b6Shelf\u5bf9\u8c61\uff0c\u56e0\u6b64\u4e00\u822c\u57283D\u7f16\u8f91\u5668\u72b6\u6001\u4e0b\u624d\u9700\u8981\u51fa\u73b0\uff0c\u8fd0\u884c\u65f6\u79d1\u5982\u4e0a\u90e8\u5206Graph3dView\u7ec4\u4ef6\u90a3\u6837\uff0c\u901a\u8fc7\u6dfb\u52a0\u53ef\u89c1\u8fc7\u6ee4\u5668\u5c06\u5176\u9690\u85cf\uff0c\u8fd9\u6837\u5c31\u5b9e\u73b0\u4e86\u6709\u51f9\u69fd\u53ef\u6446\u653e\u4e66\u7c4d\u5185\u5bb9\u76843D\u4e66\u67b6\u6548\u679c\uff0c\u672c\u4f8b\u6211\u4eec\u4f5c\u4e3a\u793a\u4f8b\u4ec5\u653e\u4e86\u4e00\u672c\u300aCSS3 \u00a0The Missing Manual\u300b\uff0c\u8fd9\u672c\u4e66\u5176\u5b9e\u662f\u7531\u4e00\u4e2a\u516d\u9762\u4f53\uff0cfront\u9762\u663e\u793a\u4e86\u4e66\u7c4d\u8d34\u56fe\uff0c\u7136\u540e\u65cb\u8f6c\u4e00\u5b9a\u89d2\u5ea6\u8fdb\u884c\u6446\u653e\uff0cbtw\u300aCSS3 \u00a0The Missing Manual\u300b\u7b2c\u4e09\u7248\u662f\u672c\u5f88\u4e0d\u9519\u7684CSS\u4e66\u7c4d\uff0c\u5f3a\u70c8\u63a8\u8350\uff01<\/p>\n<p><a href=\"http:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.22.57-AM.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-353\" alt=\"Screen Shot 2014-12-25 at 12.22.57 AM\" src=\"http:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.22.57-AM.png\" width=\"740\" height=\"716\" srcset=\"https:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.22.57-AM.png 740w, https:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.22.57-AM-300x290.png 300w, https:\/\/www.hightopo.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-25-at-12.22.57-AM-200x193.png 200w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/p>\n<p>\u4e66\u67b6\u4e24\u8fb9\u5206\u522b\u6446\u653e\u4e86\u4e24\u4e2a\u4e0d\u540c\u98ce\u683c\u7684\u5c0f\u4e66\u53f0\uff0c\u901a\u8fc7\u4e0a\u56fe\u6211\u62d6\u62fd\u6539\u53d8\u4e86\u84dd\u8272CSGNode\u56fe\u5143\u7684\u4f4d\u7f6e\uff0c\u5927\u5bb6\u901a\u8fc7\u4e24\u5f20\u56fe\u7684\u5bf9\u6bd4\u80fd\u66f4\u76f4\u89c2\u7684\u4f53\u4f1a\u5230CSG\u7684\u64cd\u4f5c\u6548\u679c\uff0c\u73bb\u7483\u95e8\u5f00\u5173\u4ee5\u53ca\u76f8\u518c\u6548\u679c\u90fd\u662f\u76f4\u63a5\u5229\u7528<a href=\"http:\/\/www.hightopo.com\/\">HT for Web<\/a>\u76843D\u5f15\u64ce\u63d0\u4f9b\u7684\u6a21\u578b\uff0c\u901a\u8fc7\u8bbe\u7f6e\u900f\u660e\u5ea6\u3001\u76f8\u7247\u8d34\u56fe\u548c\u65cb\u8f6c\u52a8\u753b\u7b49\u5462\u53ea\u529f\u80fd\u53c2\u6570\u5373\u53ef\u3002<br \/>\n<iframe loading=\"lazy\" src=\"http:\/\/player.youku.com\/embed\/XODU2MTQ4NjI4\" height=\"498\" width=\"510\" allowfullscreen=\"\" frameborder=\"0\"><\/iframe><br \/>\n\u4ee5\u4e0b\u662f\u8be5<a href=\"http:\/\/www.hightopo.com\/\">HT for Web<\/a>\u76843D\u4f8b\u5b50\u7684\u6240\u6709JavaScript\u4ee3\u7801\u4f9b\u53c2\u8003\uff1a<a href=\"http:\/\/v.youku.com\/v_show\/id_XODU2MTQ4NjI4.html\">http:\/\/v.youku.com\/v_show\/id_XODU2MTQ4NjI4.html<\/a><\/p>\n<pre class=\"&quot;brush:javascript\u201d\">ht.Default.setImage('ben12', {\r\n\twidth: 100,\r\n\theight: 50,\r\n\tcomps: [\r\n\t\t{\r\n\t\t\ttype: 'image',\r\n\t\t\tname: 'ben1',\r\n\t\t\trect: [0, 0, 50, 50]\r\n\t\t},\r\n\t\t{\r\n\t\t\ttype: 'image',\r\n\t\t\tname: 'ben2',\r\n\t\t\trect: [50, 0, 50, 50]\r\n\t\t}\r\n\t]                \r\n});            \r\n\r\nfunction init(){                                 \r\n\tdm = new ht.DataModel();                \r\n\ttreeView = new ht.widget.TreeView(dm);                                                                                                 \r\n\tgv1 = new ht.graph3d.Graph3dView(dm);   \r\n\tgv2 = new ht.graph3d.Graph3dView(dm);   \r\n\tsplitView = new ht.widget.SplitView(gv1, gv2, 'v', 0.6);   \r\n\tmainSplit = new ht.widget.SplitView(treeView, splitView, 'h', 0.27);   \r\n\r\n\tview = mainSplit.getView();  \r\n\tview.className = 'main';\r\n\tdocument.body.appendChild(view);    \r\n\twindow.addEventListener('resize', function (e) {\r\n\t\tmainSplit.invalidate();\r\n\t}, false);                         \r\n\r\n\tgv1.setMoveStep(30);\r\n\tgv1.setGridVisible(true); \r\n\tgv1.setEye(0, 100, 1000);\r\n\tgv1.setCenter(0, 200, 0);\r\n\tgv1.pan(0, 100, true);\r\n\tgv1.getLabel = function(){\r\n\t\treturn null;\r\n\t};\r\n\tgv1.getBrightness = function(data){\r\n\t\treturn null;\r\n\t};\r\n\tgv1.setVisibleFunc(function(data){\r\n\t\tif(data.showMe){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif(data instanceof ht.CSGNode &amp;&amp; data.getHost()){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t});\r\n\r\n\tgv2.setMoveStep(30);\r\n\tgv2.setEditable(true);\r\n\tgv2.setGridVisible(true); \r\n\tgv2.setEditable(true);\r\n\tgv2.pan(0, 200, true);\r\n\tgv2.getLabel = function(){\r\n\t\treturn null;\r\n\t};                \r\n\r\n\tinitShelf1();                       \r\n\tinitShelf2();                       \r\n\tinitShelf3();                       \r\n\r\n\ttreeView.expandAll();\r\n\r\n\tvar angle = 0;\r\n\tsetInterval(function(){\r\n\t\tangle += Math.PI\/40;\r\n\t\tearth.r3(0, angle, 0);\r\n\t\tphotos.s('dw.angle', angle);\r\n\t}, 50);                 \r\n}            \r\n\r\nfunction initShelf1(){\r\n\tvar shelf = new ht.CSGNode();\r\n\tshelf.s3(500, 400, 120);\r\n\tshelf.p3(0, 200, 0);\r\n\tshelf.setName('shelf1');\r\n\tshelf.s({\r\n\t\t'all.color': '#E5BB77'\r\n\t});\r\n\tdm.add(shelf);\r\n\r\n\tfor(var i=0; i&lt;2; i++){\r\n\t\tfor(var j=0; j&lt;5; j++){\r\n\t\t\tvar clipNode = new ht.CSGNode();\r\n\t\t\tclipNode.setHost(shelf);\r\n\t\t\tclipNode.s3(80, 100, 120);\r\n\t\t\tclipNode.p3(-200+j*100, 340-i*120, 20);\r\n\t\t\tclipNode.setName('substract-'+i+'-'+j);\r\n\t\t\tclipNode.s('batch', 'tt');\r\n\t\t\tclipNode.setParent(shelf);\r\n\t\t\tdm.add(clipNode);\r\n\t\t}\r\n\t}\r\n\r\n\tvar leftNode = new ht.CSGNode();\r\n\tleftNode.setHost(shelf);\r\n\tleftNode.s3(23, 380, 100);\r\n\tleftNode.p3(-255, 200, 0);\r\n\tleftNode.setName('substract left');\r\n\tleftNode.setParent(shelf);\r\n\tdm.add(leftNode);\r\n\r\n\tvar rightNode = new ht.CSGNode();\r\n\trightNode.setHost(shelf);\r\n\trightNode.s3(23, 380, 100);\r\n\trightNode.p3(255, 200, 0);\r\n\trightNode.setName('substract right');\r\n\trightNode.setParent(shelf);\r\n\tdm.add(rightNode);\r\n\r\n\tvar bottomNode = new ht.CSGNode();\r\n\tbottomNode.setHost(shelf);\r\n\tbottomNode.s3(480, 140, 140);\r\n\tbottomNode.p3(0, 80, 0);\r\n\tbottomNode.setName('substract bottom');\r\n\tbottomNode.setParent(shelf);\r\n\tdm.add(bottomNode);  \r\n\r\n\tvar topNode = new ht.CSGNode();\r\n\ttopNode.setHost(shelf);\r\n\ttopNode.s3(480, 10, 100);\r\n\ttopNode.p3(0, 400, 0);\r\n\ttopNode.setName('union top');\r\n\ttopNode.s('attach.operation', 'union');\r\n\ttopNode.setParent(shelf);\r\n\tdm.add(topNode);  \r\n\r\n\tvar book = new ht.Node();\r\n\tbook.setName('CSS3: The Missing Manual');\r\n\tbook.s3(60, 80, 8);\r\n\tbook.p3(-100, 210, 20);\r\n\tbook.r3(-Math.PI\/6, Math.PI\/5, 0);\r\n\tbook.setIcon('book');\r\n\tbook.s({\r\n\t\t'front.image': 'book',\r\n\t\t'back.color': 'white',\r\n\t\t'left.color': 'white',\r\n\t\t'all.color': 'gray'\r\n\t});\r\n\tbook.setHost(shelf);\r\n\tbook.setParent(shelf);\r\n\tdm.add(book);                                \r\n\r\n}\r\n\r\nfunction initShelf2(){                \r\n\tvar shelf = new ht.CSGNode();\r\n\tshelf.s3(120, 240, 120);\r\n\tshelf.p3(0, 120, 0);\r\n\tshelf.setName('shelf2');\r\n\tshelf.s({\r\n\t\t'all.color': '#805642',\r\n\t\t'csg.color': 'yellow',\r\n\t\t'csg.reverse.flip': true\r\n\t});\r\n\tdm.add(shelf);\r\n\r\n\tvar clipNode = new ht.CSGNode();\r\n\tclipNode.setName('shelf2-substract-up');\r\n\tclipNode.s3(100, 100, 130);\r\n\tclipNode.p3(0, 180, 0);\r\n\tclipNode.setHost(shelf);\r\n\tclipNode.s('attach.cull', true);\r\n\tclipNode.setParent(shelf);\r\n\tdm.add(clipNode);\r\n\r\n\tclipNode = new ht.CSGBox();\r\n\tclipNode.setName('CSGBox-Expand-Left');\r\n\tclipNode.s3(100, 100, 120);\r\n\tclipNode.p3(0, 65, 0.1);\r\n\tclipNode.setHost(shelf);\r\n\tclipNode.showMe = true;\r\n\tclipNode.s({\r\n\t\t'all.visible': false,\r\n\t\t'front.visible': true,\r\n\t\t'front.toggleable': true,                    \r\n\t\t'front.reverse.flip': true,\r\n\t\t'front.transparent': true,\r\n\t\t'front.end': Math.PI * 0.7,\r\n\t\t'front.color': 'rgba(0, 50, 50, 0.7)'\r\n\t});\r\n\tclipNode.setParent(shelf);\r\n\tclipNode.setFaceExpanded('front', true, true);\r\n\tdm.add(clipNode);                \r\n\r\n\tearth = new ht.Node();\r\n\tearth.setName('earth');\r\n\tearth.setIcon('earth');\r\n\tearth.s3(70, 70, 70);\r\n\tearth.p3(0, 50, 0);\r\n\tearth.s({\r\n\t\t'shape3d': 'sphere',\r\n\t\t'shape3d.image': 'earth'\r\n\t});\r\n\tearth.setHost(shelf);  \r\n\tearth.setParent(shelf);\r\n\tdm.add(earth);\r\n\r\n\tshelf.t3(-360, 0, 50);\r\n\tshelf.r3(0, Math.PI\/7, 0);                               \r\n}            \r\n\r\nfunction initShelf3(){                \r\n\tvar shelf = new ht.CSGNode();\r\n\tshelf.s3(120, 240, 120);\r\n\tshelf.p3(0, 120, 0);\r\n\tshelf.setName('shelf3');\r\n\tshelf.setIcon('ben');\r\n\tshelf.s({\r\n\t\t'all.image': 'brick',\r\n\t\t'all.uv.scale': [2, 4],\r\n\t\t'top.uv.scale': [2, 2],\r\n\t\t'bottom.uv.scale': [2, 2],                                                             \r\n\t\t'csg.image': 'ben',\r\n\t\t'csg.blend': 'yellow'\r\n\t});\r\n\tdm.add(shelf);\r\n\r\n\tphotos = new ht.DoorWindow();\r\n\tphotos.setName('DoorWindow-Photos');\r\n\tphotos.setIcon('ben12');\r\n\tphotos.s3(110, 100, 130);\r\n\tphotos.p3(5, 180, 0);                \r\n\tphotos.setHost(shelf);  \r\n\tphotos.showMe = true;\r\n\tphotos.s({                    \r\n\t\t'bottom.uv': [1,1, 1,0, 0,0, 0,1],\r\n\t\t'bottom.uv.scale': [1, 1],\r\n\t\t'left.uv.scale': [3, 3],\r\n\t\t'top.uv.scale': [2, 2],\r\n\t\t'dw.s3': [0.8, 0.9, 0.05],\r\n\t\t'dw.t3': [0, -5, 0],\r\n\t\t'dw.axis': 'v',\r\n\t\t'dw.toggleable': false,\r\n\t\t'front.image': 'ben1',\r\n\t\t'back.image': 'ben2',\r\n\t\t'all.color': '#F8CE8B'\r\n\t});\r\n\tphotos.setParent(shelf);\r\n\tdm.add(photos);\r\n\r\n\tvar clipNode = new ht.CSGBox();\r\n\tclipNode.setName('CSGBox-Expand-Top');\r\n\tclipNode.s3(100, 100, 120);\r\n\tclipNode.p3(0, 65, 0.1);\r\n\tclipNode.setHost(shelf);\r\n\tclipNode.showMe = true;\r\n\tclipNode.s({                    \r\n\t\t'all.visible': false,\r\n\t\t'front.visible': true,\r\n\t\t'front.color': 'red',\r\n\t\t'front.transparent': true,\r\n\t\t'front.opacity': 0.7,                    \r\n\t\t'front.reverse.flip': true,\r\n\t\t'front.toggleable': true,                                        \r\n\t\t'front.axis': 'top',\r\n\t\t'front.end': Math.PI * 0.4\r\n\t});\r\n\tclipNode.setParent(shelf);\r\n\tclipNode.setFaceExpanded('front', true, true);\r\n\tdm.add(clipNode);                \r\n\r\n\tshelf.t3(360, 0, 50);\r\n\tshelf.r3(0, -Math.PI\/7, 0);\r\n\r\n}<\/pre>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hightopo.com\/blog\/wp-json\/wp\/v2\/posts\/350"}],"collection":[{"href":"https:\/\/www.hightopo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hightopo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hightopo.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hightopo.com\/blog\/wp-json\/wp\/v2\/comments?post=350"}],"version-history":[{"count":4,"href":"https:\/\/www.hightopo.com\/blog\/wp-json\/wp\/v2\/posts\/350\/revisions"}],"predecessor-version":[{"id":356,"href":"https:\/\/www.hightopo.com\/blog\/wp-json\/wp\/v2\/posts\/350\/revisions\/356"}],"wp:attachment":[{"href":"https:\/\/www.hightopo.com\/blog\/wp-json\/wp\/v2\/media?parent=350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hightopo.com\/blog\/wp-json\/wp\/v2\/categories?post=350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hightopo.com\/blog\/wp-json\/wp\/v2\/tags?post=350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}