- Home /
Mesh Creation Problem
I try to create some mesh. I create to seperate mesh in one loop and I want to stick them together to get some thickness which can be ssen by users. I hope you understand what I mean?
My code is
int y = 0;
for (; y <(((pointList.Count-1))); y++)
{
indices[y*12] = 2*y;
indices[y*12+1] = 2*y+2;
indices[y*12+2] = 2*y+1;
indices[y*12+3] = 2*y+1;
indices[y*12+4] = 2*y+2;
indices[y*12+5] = 2*y+3;
indices[y*12+6] = 2*y+pointList.Count*2;
indices[y*12+7] = 2*y+1+pointList.Count*2;
indices[y*12+8] = 2*y+2+pointList.Count*2;
indices[y*12+9] = 2*y+1+pointList.Count*2;
indices[y*12+10] = 2*y+3+pointList.Count*2;
indices[y*12+11] = 2*y+2+pointList.Count*2;
indices[y*12+12] = 2*y+pointList.Count*2;
indices[y*12+13] = 2*y+2+pointList.Count*2;
indices[y*12+14] = 2*y;
indices[y*12+15] = 2*y+2+pointList.Count*2;
indices[y*12+16] = 2*y;
indices[y*12+17] = 2*y+2;
}
However Thickness does not appear well. Can anyone help me please?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613064000im_/https://answers.unity.com/themes/thub/images/avi.jpg)