How is the variable "l_mesh" declared? Is it declared as type Layer?
If so, then you need to cast it to the type L_PolyMesh:
- Code: Select all
That is, you have to tell the compiler that your object is not only a Layer, but is specifically a L_PolyMesh object.
Alternatively, you can declare l_mesh as type L_PolyMesh. Hope that makes sense.