/// <summary> /// /// </summary> /// <param name="other"></param> /// <returns></returns> public MeshField3d <T> CreateCopy(MeshField3d <T> other) { var result = Create(other); result.Set(other); return(result); }
/// <summary> /// /// </summary> /// <typeparam name="U"></typeparam> /// <param name="other"></param> /// <param name="converter"></param> /// <param name="parallel"></param> /// <returns></returns> public MeshField3d <T> CreateCopy <U>(MeshField3d <U> other, Func <U, T> converter, bool parallel = false) where U : struct { var result = Create(other); other.Convert(converter, result, parallel); return(result); }
/// <summary> /// /// </summary> /// <param name="other"></param> public MeshField3dDouble(MeshField3d other) : base(other) { }
/// <inheritdoc /> public override MeshField3d <double> Create(MeshField3d field) { return(new MeshField3dDouble(field)); }
/// <summary> /// /// </summary> /// <param name="other"></param> public MeshField3dVec3d(MeshField3d other) : base(other) { }
/// <inheritdoc /> public override MeshField3d <Vec3d> Create(MeshField3d field) { return(new MeshField3dVec3d(field)); }
/// <summary> /// /// </summary> /// <param name="mesh"></param> /// <returns></returns> public abstract MeshField3d <T> Create(MeshField3d other);
/// <summary> /// /// </summary> /// <param name="other"></param> public MeshField3d(MeshField3d other) { _mesh = other._mesh; _queryMesh = other._queryMesh; }