{"id":15432,"date":"2009-03-26T08:24:04","date_gmt":"2009-03-26T08:25:04","guid":{"rendered":"https:\/\/ocse2.com\/?p=15432"},"modified":"2009-03-26T08:33:48","modified_gmt":"2009-03-26T08:34:48","slug":"snappyhexmeshdictexporter","status":"publish","type":"post","link":"https:\/\/ocse2.com\/?p=15432","title":{"rendered":"snappyHexMeshDict+Exporter"},"content":{"rendered":"<h2>python\u306e\u304a\u52c9\u5f37\u3067\u3059<\/h2>\n<p>&nbsp;<\/p>\n<ul>\n<li><img decoding=\"async\" alt=\"\" src=\"https:\/\/ocse2.com\/pic\/blog\/090326.jpg\" style=\"width: 448px; height: 306px;\" \/><\/li>\n<li>\u4f5c\u8868\u306e\u30d9\u30fc\u30b9\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001wxpython\u306e\u30c7\u30e2\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u304b\u3089\u3001CustomDataTable\u3092\u501f\u7528<\/li>\n<\/ul>\n<blockquote>\n<p>&nbsp;class CustomDataTable(gridlib.PyGridTableBase):<br \/>\n&nbsp; &nbsp; &nbsp;def __init__(self, log):<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gridlib.PyGridTableBase.__init__(self)<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;self.log = log<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;self.colLabels = [&#39;shapeFile&#39;, &#39;Type&#39;, &#39;Use&#39;, &#39;Smin&#39;, &#39;Smax&#39;, &#39;RefReg&#39;,<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#39;Layers&#39;, &#39;Force&#39;]<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;self.dataTypes = [gridlib.GRID_VALUE_STRING,<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gridlib.GRID_VALUE_CHOICE + &#39;:Region,Surface,Patch&#39;,<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gridlib.GRID_VALUE_BOOL,<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gridlib.GRID_VALUE_NUMBER + &#39;:0,5&#39;,<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gridlib.GRID_VALUE_NUMBER + &#39;:0,5&#39;,<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gridlib.GRID_VALUE_NUMBER + &#39;:0,5&#39;,<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gridlib.GRID_VALUE_NUMBER + &#39;:0,5&#39;,<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gridlib.GRID_VALUE_BOOL<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;]<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#self.data = [<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# &nbsp; &nbsp;[&quot;box1.stl&quot;, &quot;Region&quot;, 1, 0, 0, 3, 0, 0],<\/p>\n<\/blockquote>\n<p>\nself.data \u3068\u3057\u3066\u5b9a\u7fa9\u3059\u308b\u90e8\u5206\u3092\u30e2\u30c7\u30eb\u30c7\u30fc\u30bf\u304b\u3089\u81ea\u52d5\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3084\u308c\u3070\u3088\u3044\u3002~<\/p>\n<ul>\n<li>\u3042\u308c\u3053\u308c\u8a66\u884c\u932f\u8aa4\u306e\u7d50\u679c&#8230;<\/li>\n<\/ul>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/ocse2.com\/pic\/blog\/090326-1.jpg\" \/>~<br \/>\n&nbsp;\u306b\u3066\u3001\u30d0\u30c3\u30c1\u30eaOK<br \/>\n&nbsp;\u3046\u30fc\u3093\u3001python\u3068\u3044\u3046\u304b\u3001wxpython\u3068\u3044\u3046\u304b\u3001\u3059\u3054\u304f\u7c21\u5358\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>python\u306e\u304a\u52c9\u5f37\u3067\u3059 &nbsp; \u4f5c\u8868\u306e\u30d9\u30fc\u30b9\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001wxpython\u306e\u30c7\u30e2\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u304b\u3089\u3001CustomDataTable\u3092\u501f\u7528 &nbsp;class CustomDataTable(gridlib.Py [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[],"tags":[],"class_list":["post-15432","post","type-post","status-publish","format-standard","hentry"],"views":34,"_links":{"self":[{"href":"https:\/\/ocse2.com\/index.php?rest_route=\/wp\/v2\/posts\/15432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ocse2.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ocse2.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ocse2.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ocse2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15432"}],"version-history":[{"count":0,"href":"https:\/\/ocse2.com\/index.php?rest_route=\/wp\/v2\/posts\/15432\/revisions"}],"wp:attachment":[{"href":"https:\/\/ocse2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ocse2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ocse2.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}