Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="other"></param>
        /// <returns></returns>
        public MeshField3d <T> CreateCopy(MeshField3d <T> other)
        {
            var result = Create(other);

            result.Set(other);
            return(result);
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="mesh"></param>
 /// <returns></returns>
 public abstract MeshField3d <T> Create(MeshField3d other);
Ejemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 public MeshField3dVec3d(MeshField3d other)
     : base(other)
 {
 }
Ejemplo n.º 5
0
 /// <inheritdoc />
 public override MeshField3d <Vec3d> Create(MeshField3d field)
 {
     return(new MeshField3dVec3d(field));
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 public MeshField3dDouble(MeshField3d other)
     : base(other)
 {
 }
 /// <inheritdoc />
 public override MeshField3d <double> Create(MeshField3d field)
 {
     return(new MeshField3dDouble(field));
 }
Ejemplo n.º 8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 public MeshField3d(MeshField3d other)
 {
     _mesh      = other._mesh;
     _queryMesh = other._queryMesh;
 }