Difference between revisions of "User:Plussai/GSoC 2012 log"

From BRL-CAD
(9 May 2012)
(10 May 2012)
Line 22: Line 22:
 
== 10 May 2012 ==
 
== 10 May 2012 ==
 
*build brlcad-SVN successfully on my ubantu.(PS:/sh/make_deb.sh is a good tool)
 
*build brlcad-SVN successfully on my ubantu.(PS:/sh/make_deb.sh is a good tool)
*study some about Nonuniform Scaling of Surfaces, ehy.brep!I'm coming!
+
*study some about Nonuniform Scaling of Surfaces.
 +
 
 +
== 12 May 2012 ==
 +
*find that the ehy.brep is lack of face and loop in brep structure.add them to    make a correct brep.   
 +
    int surfindex = (*b)->m_S.Count();
 +
    (*b)->NewFace(surfindex - 1);
 +
    int faceindex = (*b)->m_F.Count();
 +
    (*b)->NewOuterLoop(faceindex-1);

Revision as of 04:07, 23 May 2012

7 May 2012

  • build the brl-cad svn on VM successfully.
  • build the brlcad-7.18.4 on windows(vs2005),but some link error occured from libtclcad.lib(solved go_init(..)undefined)

8 May 2012

  • get familiar with the Brep structure.
    ON_CurveArray m_C2;//Pointers to parameter space trimming curves (used by trims)
    ON_CurveArray m_C3;//Pointers to 3d curves (used by edges)
    ON_BrepEdgeArray m_E;//edges
    ON_BrepFaceArray m_F;//faces
    ON_BrepLoopArray m_L;//loops
    ON_SurfaceArray m_S;//Pointers to parametric surfaces (used by faces)
    ON_BrepTrimArray m_T;//trims
    ON_BrepVertexArray m_V;//vertexs
    figure:[1]

9 May 2012

  • solve the link problem when build brlcad_18.4 in vs2005.(function go_init(..) undefinded)
  • understand some important point about NURBS. 3D NURBS is not tensor product surface,but it can be represented into tensor product surface by mapping 3D NURBS into 4D using homogeneous coordinate.(The NURBS BOOK page 30)
  • circle Arc can be represented by vector{(1,1,0,1),(1,1,1,1),(2,0,2,2)}in yz plane

10 May 2012

  • build brlcad-SVN successfully on my ubantu.(PS:/sh/make_deb.sh is a good tool)
  • study some about Nonuniform Scaling of Surfaces.

12 May 2012

  • find that the ehy.brep is lack of face and loop in brep structure.add them to make a correct brep.
   int surfindex = (*b)->m_S.Count();
   (*b)->NewFace(surfindex - 1);
   int faceindex = (*b)->m_F.Count();
   (*b)->NewOuterLoop(faceindex-1);