Create Lock By Blender
The post shows how to use blender to create a lock model simply. youtube bilibili The STL file in the video can be downloaded by the link:
The post shows how to use blender to create a lock model simply. youtube bilibili The STL file in the video can be downloaded by the link:
The post introduce a way to make your wordpress website has the ability to check network connection. Install the plugin Insert Headers and Footers for wordpress. Add the following code in header part. <script> if (“serviceWorker” in navigator) { navigator.serviceWorker.register(“/serviceworker.js”) Read more…
Affine transformation can be decomposed to translation, rotation, and scale. As we know, the transformation can be represented by matrix. Related post: https://www.weiy.city/2021/11/the-releationship-between-local-transform-and-pose-transform/ It can be computed by translate matrix and rotate & scale matrix. Example: Read more…
We know the matrix shearing object along a particular axis looks like: The shear transform can help us to approve that when a normal vector is transformed using the same matrix that transforms the points on an object, Read more…
As with 2D transforms, any 3D transformation matrix can be decomposed using SVD into a rotation, scale, and another rotation. Any symmetric 3D matrix has an eigenvalue decomposition into rotation, scale, and inverse-rotation. Finally, a 3D rotation can be decomposed Read more…
Here are three vectors (1, 0, 1), (-1, 0, 1) and (0, -1, 0) in the 3D world space. Define a position pos(1, 1, 0). These vector and position forms a new coordinate system A. The inverse result is status Read more…
Here are four points in 3D space, we will take them and generate another four points to draw a cube. Construct triangles to form cells for the mesh, the normal of every cell is toward inside. Here are all details Read more…
The post is based on https://www.weiy.city/2021/11/vtk-rotate-vector-to-special-direction/. We will rotate the three axes of the world coordinate system to particular directions. #include <iostream> #include <vtkSmartPointer.h> #include <vtkTransform.h> #include <vtkActor.h> #include <vtkConeSource.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkPolyDataMapper.h> #include <vtkRenderWindowInteractor.h> #include <vtkAxesActor.h> Read more…
We have to create zip file from output folder. After that users can download the result. Install zipfile module for python. pip install zipfile36 Use it in our python script to generate zip file. import sys, fitz # import the Read more…