/// <summary> /// constructor is private to enable fluent builder pattern. /// Use <see cref="Build(Mesh)"/> to obtain an instance. /// </summary> /// <param name="mesh"></param> private SourceMesh(Mesh mesh) { Mesh = mesh; translation = default(Vector3); rotation = default(Quaternion); scale = default(Vector3); vertices = null; triangles = null; minX = 0; length = 0; placeType = MeshPlaceType.None; placeWeight = 0; }
/// <summary> /// copy constructor /// </summary> /// <param name="other"></param> private SourceMesh(SourceMesh other) { Mesh = other.Mesh; translation = other.translation; rotation = other.rotation; scale = other.scale; vertices = null; triangles = null; minX = 0; length = 0; placeType = other.placeType; placeWeight = other.placeWeight; }