Hello! Example, I create square in Surface Tool, add Mesh Instance and add child in scene with the square. Question: How can I delete vertices with index 0?
(I don't find this function in surface tool and another objects)
Example of Code:
var st = SurfaceTool.new()
st.begin(Mesh.PRIMITIVE_TRIANGLES)
st.add_vertex(Vector3(0, 0, 0))
st.add_vertex(Vector3(10, 0, 0))
st.add_vertex(Vector3(10, 0, 10))
st.add_vertex(Vector3(0, 0, 10))
st.add_index(0)
st.add_index(1)
st.add_index(2)
st.add_index(3)
st.add_index(0)
st.add_index(1)
var mesh = MeshInstance.new()
mesh.mesh = st.commit()
add_child(mesh)