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

## 7 May 2012

• build the brl-cad svn on VM successfully.

## 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);

## 13 May 2012

• find that computing the longest edge size is in the bspile/nurb_tess.c and the nurbs is represented by the form of struct face_g_snurb that is different from the ON_BrepSurface.It needs to implement a new interface for the longest edge size.

## 19 May 2012

• submit a patch of brep_debug.cpp.check if the index is in the range and string of letter.

## 23 May 2012

• update the patch of brep_debug.cpp.add the sub command 'info T','info E' for display the information of trims and edges in brep.Also, make the 'info' dispaly the information in a range of indexed elements for keeping sync with the 'plot'.