Contents, API Reference, Interfaces, iMesh, getOrigin
Helper for querying local origin of mesh, e.g. for mesh federation tiles.
void getOrigin(int32_t& x, int32_t& y) const;
X coordinate of origin.
Y coordinate of origin.
If you're not using the mesh federations feature
and just work with one mesh at a time,
the chances are that your mesh origin is at 0,0,
and you don't need to use this methood.
If you _are_ using mesh federations,
then geometry passed in to and returned by methods on iMesh instances
are in mesh local coordinates (relative to the federation tile origin),
and this method can then be used to
convert between world and mesh local coordinates.
The mesh origin should correspond to the coordinates
returned by iMeshFederation::getTileCentre()
for the relevant federation tile.
void getOrigin(out int x, out int y);
void getOrigin(int_OutArgument x, int_OutArgument y);