Web
Javascript: deep copy, sleep function and &\#038;
How to forbid wordpress convert JS && to “&” Add the following code in your theme’s file function.php such as ./wp-content/themes/hestia/functions.php. function newautop($text) { $newtext = “”; $pos = 0; $tags = array(‘<!– noformat on –>’, ‘<!– noformat off –>’); $status = 0; while (!(($newpos = strpos($text, $tags[$status], $pos)) === Read more…
CGAL
CGAL Small Projects For Arithmetic Exercise
CMakeLists.txt Use basic functions for number computing. Demo code about Polynomial.
VTK
VTK Solution For Four Basic Questions About Mesh Connectivity
Question 1, Given a triangle, what are the three adjacent triangles? Question 2, Given an edge, which two triangles share it? Question 3, Given a vertex, which faces share it? Question 4, Given a vertex, which edges share it? A video about the post: Bilibili
CPlusPlus
vtkActor GetCenter Return Center Of Bounding Box
The interface GetCenter gives us the center of bounding box rather than barycenter of model. Here is source code from VTK9.2.0.
Tool
3D Model Editor – Find Non-manifold Edge And Points
In the mesh structure of 3D models, there is a kind of situation that can make many 3D algorithms useless or even break down. Because the default input model for many 3D algorithms is a manifold structure. But sometimes we get a data that is not manifold. The left side Read more…
Tool
3D Model Editor – Find Inconsistently Oriented Surface
Each simple triangle in the mesh structure of the 3D model has three verticesThe order of the three vertices is clockwise or counterclockwise.In general, all cell vertices on a model are in the same order.If it is not consistent, that is to say it has both clockwise and counterclockwise orders, Read more…
Project
Write CMakeLists.txt To Build Release Executable File With Debug Info
Add the following code snippet to make your executable file run on windows and has debug information.
Tool
New Tool – Compound Interest
We create a new tool compound interest calculator. Input your investment plan, our tool will draw the money growing scene in the future. Tool: Youtube Bilibili