Your Products have been synced, click here to refresh
Not sure to understand, you're trying to measure the length of the perimeter ?
With a scanning head, scan the perimeter with a high density of hits (linear closed scan).
Then :
ASSIGN/V1=SCN1.HIT[1..(SCN1.NUMHITS-1)].XYZ
ASSIGN/V2=SCN1.HIT[2..SCN1.NUMHITS].XYZ
ASSIGN/V3=SQRT(DOT(V2-V1,V2-V1))
ASSIGN/PERIMETER=SUM(V3)
ASSIGN/V1=SCN1.HIT[1..(SCN1.NUMHITS-1)].XYZ ASSIGN/V2=SCN1.HIT[2..SCN1.NUMHITS].XYZ ASSIGN/V3=SQRT(DOT(V2-V1,V2-V1)) ASSIGN/V4=SCN1.HIT[1].XYZ ASSIGN/V5=SCN1.HIT[NUMHITS].XYZ ASSIGN/V6=SQRT(DOT(V4-V5,V4-V5)) ASSIGN/PERIMETER=SUM(V3)+V6
Not sure to understand, you're trying to measure the length of the perimeter ?
With a scanning head, scan the perimeter with a high density of hits (linear closed scan).
Then :
ASSIGN/V1=SCN1.HIT[1..(SCN1.NUMHITS-1)].XYZ
ASSIGN/V2=SCN1.HIT[2..SCN1.NUMHITS].XYZ
ASSIGN/V3=SQRT(DOT(V2-V1,V2-V1))
ASSIGN/PERIMETER=SUM(V3)
ASSIGN/V1=SCN1.HIT[1..(SCN1.NUMHITS-1)].XYZ ASSIGN/V2=SCN1.HIT[2..SCN1.NUMHITS].XYZ ASSIGN/V3=SQRT(DOT(V2-V1,V2-V1)) ASSIGN/V4=SCN1.HIT[1].XYZ ASSIGN/V5=SCN1.HIT[NUMHITS].XYZ ASSIGN/V6=SQRT(DOT(V4-V5,V4-V5)) ASSIGN/PERIMETER=SUM(V3)+V6
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |