コード例 #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);
        }
コード例 #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);
        }
コード例 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="mesh"></param>
 /// <returns></returns>
 public abstract MeshField3d <T> Create(MeshField3d other);
コード例 #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 public MeshField3dVec3d(MeshField3d other)
     : base(other)
 {
 }
コード例 #5
0
 /// <inheritdoc />
 public override MeshField3d <Vec3d> Create(MeshField3d field)
 {
     return(new MeshField3dVec3d(field));
 }
コード例 #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 public MeshField3dDouble(MeshField3d other)
     : base(other)
 {
 }
コード例 #7
0
 /// <inheritdoc />
 public override MeshField3d <double> Create(MeshField3d field)
 {
     return(new MeshField3dDouble(field));
 }
コード例 #8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 public MeshField3d(MeshField3d other)
 {
     _mesh      = other._mesh;
     _queryMesh = other._queryMesh;
 }