@@ -60,13 +60,13 @@ namespace polymesh {
6060 return new cmesh ( )
6161 }
6262
63- //% blockid=poly_cls_vertice
63+ //% blockid=poly_clsvertice
6464 //% block="vertice of x $x y $y z $z"
6565 export function clsvertice ( x : number , y : number , z : number ) : cvc {
6666 return new cvc ( x , y , z )
6767 }
6868
69- //% blockid=poly_cls_triangle
69+ //% blockid=poly_clstriangle
7070 //% block="triangle of idc1 $x idc2 $y idc3 $z color $col"
7171 export function clstriangle ( i1 : number , i2 : number , i3 : number , col : number ) : ctc {
7272 return new ctc ( i1 , i2 , i3 , col )
@@ -83,7 +83,7 @@ namespace polymesh {
8383 //% blockid=poly_class_addvertice
8484 //% block=" $this add vertice by $ccv|| at $idx"
8585 //% this.defl=myMesh
86- //% ccv.shadow=poly_cls_vertice
86+ //% ccv.shadow=poly_clsvertice
8787 public addvertice ( ccv : cvc , idx : number = - 1 ) {
8888 if ( idx < 0 ) {
8989 this . v . cvs . insertAt ( idx , { x : ccv . x , y : ccv . y , z : ccv . z } )
@@ -95,7 +95,7 @@ namespace polymesh {
9595 //% blockid=poly_class_addtriangle
9696 //% block=" $this add triangle by $cct|| at $idx"
9797 //% this.defl=myMesh
98- //% cct.shadow=poly_cls_triangle
98+ //% cct.shadow=poly_clstriangle
9999 public addtriangle ( cct : ctc , idx : number = - 1 ) {
100100 if ( idx < 0 ) {
101101 this . v . cts . insertAt ( idx , { indices : [ cct . i1 , cct . i2 , cct . i3 ] , color : cct . c } )
@@ -107,15 +107,15 @@ namespace polymesh {
107107 //% blockid=poly_class_addvertice
108108 //% block=" $this set vertice at $idx by $ccv"
109109 //% this.defl=myMesh
110- //% ccv.shadow=poly_cls_vertice
110+ //% ccv.shadow=poly_clsvertice
111111 public setvertice ( idx : number , ccv : cvc ) {
112112 this . v . cvs . set ( idx , { x : ccv . x , y : ccv . y , z : ccv . z } )
113113 }
114114
115115 //% blockid=poly_class_addtriangle
116116 //% block=" $this set triangle at $idx by $cct"
117117 //% this.defl=myMesh
118- //% cct.shadow=poly_cls_triangle
118+ //% cct.shadow=poly_clstriangle
119119 public settriangle ( idx : number , cct : ctc ) {
120120 this . v . cts . set ( idx , { indices : [ cct . i1 , cct . i2 , cct . i3 ] , color : cct . c } )
121121 }
@@ -355,6 +355,7 @@ namespace polymesh {
355355
356356 }
357357
358+ //% blockHidden
358359 //% blockid=poly_getvertice
359360 //% block="get vertice x $x y $y z $z"
360361 export function getvertice ( x : number , y : number , z : number ) : cv {
@@ -363,6 +364,7 @@ namespace polymesh {
363364 } ;
364365 }
365366
367+ //% blockHidden
366368 //% blockid=poly_gettriangle
367369 //% block="get triangle indice 1 $i1 indice 2 $i2 indice 3 $i3 color $col"
368370 export function gettriangle ( i1 : number , i2 : number , i3 : number , col : number ) : ct {
0 commit comments