使用uf5374()
源码:
double dP1[3] = { 0.0,0.0,0.0 }; double dP2[3] = { 0.0,1.0,0.0 }; double dP3[3] = { 0.0,0.0,1.0 }; tag_t tagPlane; uf5374(dP1, dP2, dP3, &tagPlane);
使用UF_MODL_create_plane()
double dP1[3] = { 0.0,0.0,0.0 }; double dDir[3] = { 1.0,0.0,0.0 }; tag_t tagPlane; UF_MODL_create_plane(dP1, dDir, &tagPlane);
效果: