📄 faq.h
字号:
/*! \page faq MeshMaker Frequently Asked Question
*
- Q: I'm trying to add my own OpenGL commands, but they all fail. Why?\n
A: OpenGL doesn't work with threads. Meaning, only one thread at an application is allowed to perform OpenGL commands. There
is already such a thread. It is the main thread (the one which is in charge of CMeshMakerView). If you must add your own OpenGL commands
you have to do make sure they are performed in that same thread.
- Q: I started a new model using Mesh::startNewModel, and added vertices and faces, but they don't show up. Why?\n
A: When you start a new model, you should also call Renderer::setAutoScale to make the model automatically
rescale itself according to to the changes in the geometry.
- Q: Sometimes I call some MeshMaker functions from my code (for example, the pick functions), and the program seems to be stuck. Why is that?\n
A: For some of the the API functions you need to be in a seperate thread from the main thread, otherwise there are synchronization problems. For your code it's preferable that you start a new thread, using startNewThread, and put your code in there. More details can be found in the \ref tutorial, under the section \ref s5.
- Q: There are some vrml files I try to open but the program crashes. Why?\n
A: The MeshMaker only supports reading vrml file with IndexFaceSet in them, and no shapes (such as spheres an cylinders).
If you try to open such a file (with shapes), the program will crash. This also goes for the files the MeshMaker creates using Mesh::VRMLExport.
- Q: How are the (u,v) coordinates of a vertex originally initialized?\n
A: If you don't specify specifically the (u,v) coordinates using Renderer:setVertexUV, the coordinates are initialized to zero.
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -