コード例 #1
0
ファイル: DMeshSO.cs プロジェクト: ly774508966/frame3Sharp
 void validate_decomp()
 {
     if (decomp == null)
     {
         decomp = new MeshDecomposition(mesh, this);
         decomp.BuildLinear();
     }
 }
コード例 #2
0
        public virtual void ValidateViewMeshes()
        {
            if (decomp_valid)
            {
                return;
            }

            decomp = new MeshDecomposition(mesh, this);
            decomp.BuildLinear();
            decomp = null;

            decomp_valid = true;
        }
コード例 #3
0
ファイル: DMeshSO.cs プロジェクト: Alan-Baylis/frame3Sharp
        //
        // internals
        //
        void on_mesh_changed(bool bInvalidateSpatial = true, bool bInvalidateDecomp = true)
        {
            if (bInvalidateSpatial)
            {
                spatial = null;
            }

            // discard existing mesh GOs
            if (bInvalidateDecomp)
            {
                ClearAllComponents();
                decomp = null;
            }
        }
コード例 #4
0
        public virtual void ValidateViewMeshes()
        {
            if (decomp_valid)
            {
                return;
            }

            decomp = new MeshDecomposition(mesh, this)
            {
                MaxComponentSize = this.MaxSubmeshSize
            };
            decomp.BuildLinear();
            decomp = null;

            decomp_valid = true;
        }