コード例 #1
0
ファイル: CadObject2DDrawPart.cs プロジェクト: lulzzz/IvyFEM
        public bool SetVertex(MeshVertex vertex)
        {
            CadId = vertex.VCadId;
            System.Diagnostics.Debug.Assert(CadId != 0);
            MeshId = vertex.Id;
            System.Diagnostics.Debug.Assert(MeshId != 0);
            Type = CadElementType.Vertex;

            ElemPtCount = 1;
            ElemCount   = 1;
            Indexs      = new uint[ElemCount * ElemPtCount];
            Indexs[0]   = vertex.V;

            Color[0] = 0.0f;
            Color[1] = 0.0f;
            Color[2] = 0.0f;
            return(true);
        }
コード例 #2
0
ファイル: Mesher2DDrawPart.cs プロジェクト: lulzzz/IvyFEM
        public Mesher2DDrawPart(MeshVertex vtx)
        {
            IsSelected = false;
            IsShown    = true;
            Color[0]   = 0.8;
            Color[1]   = 0.8;
            Color[2]   = 0.8;
            LineWidth  = 1;
            Height     = 0;
            ElemIndexs = null;
            EdgeIndexs = null;

            CadId = vtx.VCadId;

            MeshId = vtx.Id;
            System.Diagnostics.Debug.Assert(MeshId != 0);
            Type = ElementType.Point;

            ElemCount     = 1;
            ElemIndexs    = new int[ElemCount];
            ElemIndexs[0] = (int)vtx.V;
        }