Link Search Menu Expand Document

HNODE enuCreate3DFaceSet(HX3D pX3DHandler, wchar_t* strID, wchar_t* strPoints, wchar_t* strVectors, float transx, float transy, float transz)

HNODE enuCreate3DFaceSet(HX3D pX3DHandler, wchar_t* strID, wchar_t* strPoints, wchar_t* strVectors, float transx, float transy, float transz)

Parameters

  • HX3D pX3DHandler

3d 픽쳐 핸들을 입력합니다.

  • wchar_t* strID

생성객체의 ID를 지정합니다.

  • wchar_t* strPoints

3D FaceSet객체의 포인트값을 입력합니다.

  • wchar_t* strVectors

3D FaceSet객체의 벡터값을 입력합니다.

  • float transx

3d FaceSet객체의 x축 이동값을 입력합니다.

  • float transy

3d FaceSet객체의 y축 이동값을 입력합니다.

  • float transz

3d FaceSet객체의 z축 이동값을 입력합니다.

Return Value

Type : HNODE

생성된 FaceSet객체의 노드를 반환합니다.

Remarks

3d 픽쳐 핸들을 이용하여 3d FaceSet객체를 생성합니다.

Examples

HVIEW ViewHandle = NULL; 
void CSampleView::OnInitialUpdate() 
{ 
    CView::OnInitialUpdate(); 

    enuCreateProject(); 

    // Load Project
    enuLoadProjectFile(L"Project\\sample.enup"); 

    // Create View
    ViewHandle = enuCreate3DView(this->m_hWnd); 

    // ENU View Attach Set Page 
    enuSetX3dPageView(ViewHandle , L"picture\\core_3d.x3d");

    // Get X3D picture handle
    HX3D pX3D = enuGetX3DHandler(ViewHandle); 

    // Create 3D FaceSet
    CString points = L"-10 -5 0 -9 -5 1 -8 -5 2 -7 -5 3 -6 -5 8 -5 -5 2 -4 -5 9 -3 -5 1 -2 -5 5 -1 -5 7 0 0 5 1 5 3 2 5 3 3 5 6 4 5 1 5 5 10 6 5 6 7 5 9 8 5 2 9 5 7 10 5 2";
    CString vectors = L"0 1 2 -1 3 4 5 -1 6 7 8 -1 9 10 11 -1 12 13 14 -1 15 16 17 -1 18 19 20 -1";
    HNODE node = enuCreate3DFaceSet(pX3D,L"MyFaceSet", points.GetBuffer(0), vectors.GetBuffer(0), 0, 0, 0);        // 동기식 호출    
}