Make Model Always On Top II

We had introduced a way to keep a few special models awalys on the top layer in 3D scene. The relative post: https://www.weiy.city/2020/03/make-model-always-on-top/. But it will fail to shift polygons, lines, and points sometimes, eg. when we are in the WebAssembly environment (wasm) for web page.Let’s use an another method Read more…

Rewrite File To Move 3D Model To Origin Point

The post shows a way to move 3D model to the original point in world coordinate system. The file CMakeLists.txt is similar to https://www.weiy.city/2021/12/find-closest-plane-between-points-in-3d-by-covariance-matrix/. The included file point.hpp can be found in https://www.weiy.city/2020/09/project-point-on-line-and-plane-by-special-direction/. #include <iostream> #include <vtkPolyData.h> #include <vtkActor.h> #include <vtkTransformFilter.h> #include “./point.hpp” #include <vtkTransform.h> #include <vtkSTLReader.h> #include <vtkSTLWriter.h> #define Read more…

Web – The Template About Sending File To Server

The post shows a template about how to send file to our remote server. We need to prepare html page, javascript and php script. HTML Page Write a web page and import front.js that contains submit event. front.html: <!DOCTYPE html> <html> <body> <div key=”uploadMeshContent” id=”content”> <input type=”file” id=”uploadMesh” name=”uploadMesh”/> <progress Read more…

File IO Between QFile And std fstream

The article show demoes about use ifstream to read file written by qfile and use qfile to read file written by ofstream. Use ifstream to read file written by QFile #include <QCoreApplication> #include <QString> #include <QFile> #include <iostream> #include <fstream> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QString Read more…

Tex To PDF
: convert the Latex file which suffix is tex to a PDF file

X