princetonpku / hccl-archive

Automatically exported from code.google.com/p/hccl-archive
0 stars 0 forks source link

TriMesh 기본 틀 다지기 #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
필요한 내용들:
- Export 함수 (ply, obj, off, stl 정도는 있어야...)
- edge 배열 추가 및 관련 계산 함수... (half-edge?)
- edge_length, 
- Accessor 함수들 getVertexX(), getVertex(), getFacet() ...
- Property 계산시 필요한 property 만 따로 계산할 수 있도록.. 
(지금은 한꺼번에 모두 계산하게 되어있음)
- Is####Availalbe()함수 추가하여 현재 특정 property가 계산되어 
있는지 검사
- Rendering 함수들 우선 구현
- Rotate, Translate, Scale 함수 구현
- 기타 geometry연산용...

<<일단은 보류>>
- 각 파트들을 세분화하여 파일로 쪼개기..(렌더링.h, FILEIO.h, 
Property.h)

※ 유의사항
1. 앞으로 파일 세분화할 것 고려해서 최대한 static으로 짜기
e.g.
Vector3d CTriMesh::CalcCOG(void)로 짜는 것 보다는,
static Vector3d CTriMeshCalcCOG(const CTriMesh& mesh)와 같은 형태로...

2. 내부에서 구현되는 대용량 벡터 연산의 경우 double*을 
사용하지만,
 그렇지 않은 경우(특히 인터페이스 함수들...)는 Vector3d클래스를 주로 이용할 것

Original issue reported on code.google.com by nall...@gmail.com on 20 Jul 2012 at 2:59

GoogleCodeExporter commented 9 years ago
I'll do this task

Original comment by icy7...@gmail.com on 24 Jul 2012 at 6:39

GoogleCodeExporter commented 9 years ago
http://assimp.sourceforge.net/main_features_export.html
http://assimp.sourceforge.net/lib_html/class_assimp_1_1_exporter.html
를 보면 Export도 Assimp를 이용해 가능한 것 같은데(stl, ply, obj, 
dae 가능) Assimp를 전혀 몰라서 손을 못대고 있습니다.
가능하신분 한번 확인 부탁드립니다.

Original comment by nall...@gmail.com on 30 Jul 2012 at 6:19