{"id":1396,"date":"2022-02-10T14:58:56","date_gmt":"2022-02-10T22:58:56","guid":{"rendered":"https:\/\/gantovnik.com\/bio-tips\/?p=1396"},"modified":"2022-02-10T14:58:56","modified_gmt":"2022-02-10T22:58:56","slug":"210-parametric-curve-in-3d-2-2-2-2-2-2-2-2-2-2-2-2-2-3-2-2-2-2-2-2","status":"publish","type":"post","link":"https:\/\/gantovnik.com\/bio-tips\/2022\/02\/210-parametric-curve-in-3d-2-2-2-2-2-2-2-2-2-2-2-2-2-3-2-2-2-2-2-2\/","title":{"rendered":"#265 *markintersection in HyperMesh tcl"},"content":{"rendered":"<p>*markintersection determines the intersection between two marks and stores the results in the first mark in HyperMesh tcl.<\/p>\n<p>To delete the intersection between the elements on marks 1 and 2:<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n*createmark elems 1 1 2 3 4\r\n*createmark elems 2 4 5 6 7\r\n*markintersection elems 1 elems 2\r\n*deletemark elems 1\r\n<\/pre>\n<p>This will delete element 4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>*markintersection determines the intersection between two marks and stores the results in the first mark in HyperMesh tcl. To delete the intersection between the elements on marks 1 and 2: *createmark elems 1 1 2 3 4 *createmark elems 2 4 5 6 7 *markintersection elems 1 elems 2 *deletemark elems 1 This will delete [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_lmt_disableupdate":"yes","_lmt_disable":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[27],"tags":[],"class_list":["post-1396","post","type-post","status-publish","format-standard","hentry","category-tcl"],"modified_by":"gantovnik","jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8bH0k-mw","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":947,"url":"https:\/\/gantovnik.com\/bio-tips\/2021\/09\/171-delete-the-difference-between-the-elements-on-marks-1-and-2-in-hypermesh-tcl\/","url_meta":{"origin":1396,"position":0},"title":"#171 Delete the difference between the elements on marks 1 and 2 in HyperMesh tcl","author":"gantovnik","date":"2021-09-01","format":false,"excerpt":"#171 Delete the difference between the elements on marks 1 and 2 in HyperMesh tcl. *markdifference determines the difference between two marks and stores the results in the first mark. *createmark elems 1 1 2 3 4 *createmark elems 2 4 5 6 7 *markdifference elems 1 elems 2 *deletemark\u2026","rel":"","context":"In &quot;HyperMesh&quot;","block_context":{"text":"HyperMesh","link":"https:\/\/gantovnik.com\/bio-tips\/category\/hypermesh\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1398,"url":"https:\/\/gantovnik.com\/bio-tips\/2022\/02\/210-parametric-curve-in-3d-2-2-2-2-2-2-2-2-2-2-2-2-2-3-2-2-2-2-2-2-2\/","url_meta":{"origin":1396,"position":1},"title":"#266 *marknotintersection in HyperMesh tcl","author":"gantovnik","date":"2022-02-10","format":false,"excerpt":"*marknotintersection determines the intersection between two marks and stores everything but the intersection in the first mark in HyperMesh tcl. To delete the elements not shared by marks 1 and 2: [code language=\"python\"] *createmark elems 1 1 2 3 4 *createmark elems 2 4 5 6 7 *marknotintersection elems 1\u2026","rel":"","context":"In &quot;tcl&quot;","block_context":{"text":"tcl","link":"https:\/\/gantovnik.com\/bio-tips\/category\/tcl\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1265,"url":"https:\/\/gantovnik.com\/bio-tips\/2021\/12\/133-create-vectors-and-planes-using-tcl-in-hypermesh-2\/","url_meta":{"origin":1396,"position":2},"title":"#227 Delete all elements using tcl in HyperMesh","author":"gantovnik","date":"2021-12-14","format":false,"excerpt":"To delete all of the elements in the model: [code language=\"python\"] *createmark elems 1 \"all\" *deletemark elems 1 [\/code] To delete the elements 50, 51, and 52 from a database: [code language=\"python\"] *createmark elems 1 \"50 51 52\" *deletemark elems 1 [\/code]","rel":"","context":"In &quot;HyperMesh&quot;","block_context":{"text":"HyperMesh","link":"https:\/\/gantovnik.com\/bio-tips\/category\/hypermesh\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2235,"url":"https:\/\/gantovnik.com\/bio-tips\/2024\/06\/432-hypermesh-tcl-script-to-mark-and-print-all-adjacent-element-ids\/","url_meta":{"origin":1396,"position":3},"title":"#432 Hypermesh tcl script to mark and print all adjacent element IDs","author":"gantovnik","date":"2024-06-30","format":false,"excerpt":"[code language=\"python\"] *createmark elements 1 \"all\" *numbersmark elements 1 0 *clearmark elems 1 *clearmark elems 2 *createmarkpanel elems 1 \"Select elements\" set selected [hm_getmark elems 1] *setoption force_text_black=1 *setoption element_color_mode=2 *numbersmark elements 1 1 foreach ID $selected { puts \"Selected elements ID: $ID\" #select attached *createmark elems 1 $ID *findmark\u2026","rel":"","context":"In &quot;HyperMesh&quot;","block_context":{"text":"HyperMesh","link":"https:\/\/gantovnik.com\/bio-tips\/category\/hypermesh\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/06\/ex432.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/06\/ex432.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/06\/ex432.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/06\/ex432.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/06\/ex432.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":775,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/11\/132-delete-all-elements-using-tcl-in-hypermesh\/","url_meta":{"origin":1396,"position":4},"title":"#132 Delete all elements using tcl in HyperMesh","author":"gantovnik","date":"2020-11-12","format":false,"excerpt":"#132 Delete all elements using tcl in HyperMesh To delete all elements: [code language=\"python\"] *createmark elements 1 \"all\" *deletemark elements 1 [\/code] To delete elements 50 51 52: [code language=\"python\"] *createmark elems 1 \"50 51 52\" *deletemark elems 1 [\/code]","rel":"","context":"In &quot;HyperMesh&quot;","block_context":{"text":"HyperMesh","link":"https:\/\/gantovnik.com\/bio-tips\/category\/hypermesh\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":763,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/11\/128-moment-of-inertia-values-for-the-selected-entities-using-tcl-in-hypermesh\/","url_meta":{"origin":1396,"position":5},"title":"#128 Moment-of-inertia values for the selected entities using tcl in HyperMesh","author":"gantovnik","date":"2020-11-02","format":false,"excerpt":"#128 Moment-of-inertia values for the selected entities using tcl in HyperMesh To get the MOI for components 1-5: [code language=\"python\"] *createmark comps 1 1-5 puts [hm_getmoi comps 1] [\/code] [code language=\"python\"] *createmark elems 1 displayed puts [hm_getmoi elems 1 2 $origin_node_id 2 $local_system_id 0 0] [\/code]","rel":"","context":"In &quot;HyperMesh&quot;","block_context":{"text":"HyperMesh","link":"https:\/\/gantovnik.com\/bio-tips\/category\/hypermesh\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/1396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/comments?post=1396"}],"version-history":[{"count":0,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/1396\/revisions"}],"wp:attachment":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/media?parent=1396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/categories?post=1396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/tags?post=1396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}