[Ry...] Posted October 17, 2023 Share Posted October 17, 2023 I have created a section from a plane through my mesh and I wish to calculate the length of the curve created from this cross-section. Is this possible? Link to comment https://qualityforum.zeiss.com/topic/3333-measure-length-of-a-section-curve/ Share on other sites More sharing options...
[be...] Posted October 17, 2023 Share Posted October 17, 2023 I think you can take the sum of the distances between each point in the section # -*- coding: utf-8 -*- import gom total_dist=0 section=gom.app.project.actual_elements['Plane 1 +0.00 mm'] for i in range(0, len(section.coordinate)-1): total_dist+=(abs(section.coordinate[i+1].x-section.coordinate[i].x)+abs(section.coordinate[i+1].y-section.coordinate[i].y)+abs(section.coordinate[i+1].z-section.coordinate[i].z)) print(total_dist) Link to comment https://qualityforum.zeiss.com/topic/3333-measure-length-of-a-section-curve/#findComment-9149 Share on other sites More sharing options...
[be...] Posted October 17, 2023 Share Posted October 17, 2023 actually there is a "curve length" check on the i-inspect which is probably what you are looking for Link to comment https://qualityforum.zeiss.com/topic/3333-measure-length-of-a-section-curve/#findComment-9151 Share on other sites More sharing options...
[Ry...] Posted October 17, 2023 Author Share Posted October 17, 2023 Perfect, thank you very much. Link to comment https://qualityforum.zeiss.com/topic/3333-measure-length-of-a-section-curve/#findComment-9153 Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in