如何使用 github pages 以及 Chirpy Theme 创建博客
使用Chirpy Theme在GitHub Pages部署Jekyll 使用Jekyll + Github Pages搭建静态网站 Text and Typography
使用Chirpy Theme在GitHub Pages部署Jekyll 使用Jekyll + Github Pages搭建静态网站 Text and Typography
1. std::variant (变体) 在很多编程场景中,我们经常遇到需要处理多种类型的情况。传统上,这可以通过多种方式来实现,例如使用 union 或 void* 指针,甚至使用一系列的 if-else 语句和类型转换。但这些方法通常都有各种缺点,如类型不安全、容易出错或难以维护。 std::variant 为这一问题提供了一个现代、类型安全的解决方案。它允许你在一个单一的变量中存储多...
VTK可视化基本流程 /* 二维等值线提取与可视化代码片段 */ // 等值线 Filter vtkContourFilter *contourFilter = vtkContourFilter::New(); contourFilter->SetValue(0, ui->selectedValueLabel->text().toDouble()); contourFil...
echo -en "\e[H\e[J\e[3J" reference clear command in Konsole
Reference VTK examples 添加 field (dataset) 数据 第一步,创建VTK的field数据 vtkSmartPointer<vtkDoubleArray> fieldDataArray = vtkSmartPointer<vtkDoubleArray>::New(); fieldDataArray->SetNum...
操作 下载 gcc源码包,解压生成gcc-9.2.0: http://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz 在四个依赖包在以下文件中有描述: ./contrib/download_prerequisites gmp-6.1.0.tar.bz2 mpfr-3.1.4.tar.bz2 mpc-1.0.3.tar....
Demo code Demo code 1 #include <BVH_Tree.hxx> #include <TopoDS_Shape.hxx> #include <vector> // Assuming you have a vector of TopoDS_Shape objects called 'shapes' // Create a B...
#include <iostream> #include <TopoDS_Shape.hxx> #include <TopExp_Explorer.hxx> using namespace std; int main() { // Create a TopoDS_Shape object. TopoDS_Shape shape; // C...
bounding box 方式检测 #include <Bnd_Box.hxx> #include <BRepBndLib.hxx> TopoDS_Shape shape1, shape2; // Assume these shapes are already defined Bnd_Box boundingBox1, boundingBox2; BRepBnd...
1. Ubuntu 安装 Qt5 命令 安装Qt5: sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qtmultimedia5-dev qttools5-dev qttools5-dev-tools qtcreator libqt5svg5-dev libqt5charts5 libqt5charts...