Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lmj01 committed Jul 7, 2023
1 parent 2ce497a commit 6077e3f
Show file tree
Hide file tree
Showing 14 changed files with 75 additions and 16 deletions.
4 changes: 4 additions & 0 deletions articles/2023/daily.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2023-7-7

给一个STL模型,对其数据进行连通区域的分割,分割成多个模型

## 2023-6-16
**布什内尔定律**,是游戏公司Atari的创始人,他提出,游戏的操作应该简单,一看就会,但是玩法应该保持挑战性,后人总结为“易于学习,难以精通”

Expand Down
17 changes: 17 additions & 0 deletions cg/cornerstonejs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# CornerstoneJS

## dev
```js
yarn install
yarn run example tutorialName
yarn run serve-static-examples
```

- [3D Volume Rendering](https://www.cornerstonejs.org/live-examples/volumeviewport3d)

## 概念

#### ImageId
就是一个url, url scheme决定某个ImageLoader插件真实的加载图像,Cornerstone3D委托注册的ImageLoader去加载,这样Cornerstone3D就可以同时显示多张图像,来自不同服务上的各种协议

![image id](../images/cg/ct/image-id-format.png)
11 changes: 1 addition & 10 deletions cg/ct.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# CT

- [vtk-js doc](https://kitware.github.io/vtk-js/docs/)

## CornerstoneJS

### 概念

#### ImageId
就是一个url, url scheme决定某个ImageLoader插件真实的加载图像,Cornerstone3D委托注册的ImageLoader去加载,这样Cornerstone3D就可以同时显示多张图像,来自不同服务上的各种协议

![image id](../images/cg/ct/image-id-format.png)

- [CornerstoneJS](./cornerstonejs.md)

## DICOM

Expand Down
7 changes: 5 additions & 2 deletions cpl/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ pip install pyopengl
- pip install pillow //
- pip install redis
- pip install matplotlib // matplotlib是一个python 2D绘图库,利用它可以画出许多高质量的图像
- pip install openmesh // openmesh

## python anaconda

Expand All @@ -55,8 +56,10 @@ pip install pyopengl
_conda.exe --version
_conda.exe env list
Scripts\activate 进入当前环境中base
condabin\conda create -p d:\anaconda3\envs\realSR // 新建一个环境
Scripts\activate realSR // 进入当前环境
condabin\conda create --prefix d:\anaconda3\envs\realSR // 新建一个环境
condabin\conda create --name conda2 // 新建一个环境
condabin\conda info --envs // 新建一个环境
Scripts\activate conda2 // 进入当前环境


## 概念
Expand Down
1 change: 1 addition & 0 deletions dev-note/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- git rm --cached file.ext 删除file.ext的跟踪, 并保留本地的
- git rm -f file.ext 删除跟踪,并删除本地文件
- git reset --hard xxxx // 退回到那个版本
- git pull origin main --allow-unrelated-histories //历史记录不一样

### submodule
- git submodule add <repository> <path>添加子模块 path是相对根目录的路径
Expand Down
13 changes: 13 additions & 0 deletions index/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,16 @@
- [用户 角色 权限的通用设计](../articles/2023/userRolePermission.md)
- [Markdown 例子](../articles/markdown.md)
- [Mathjax](../articles/mathjax.md)

## 工作中遇到的
- [mobile-detect.js](https://github.com/hgoebl/mobile-detect.js)
- [openCTM模型文件格式](https://openctm.sourceforge.net/)
- [OpenCTM Code ](https://sourceforge.net/p/openctm/code/HEAD/tree/branches/pre-2.x/)
- [github openCTM](https://github.com/Danny02/OpenCTM)
- [This is the home of development of the OpenCTM project](https://github.com/mbitsnbites/openctm)
- [js-openctm is a JavaScript library for reading OpenCTM files](https://github.com/jcmellado/js-openctm)
- [three, ctm](https://alteredqualia.com/three/examples/webgl_loader_ctm_materials.html)
- [Bezier.js, for doing Bezier curve things](https://pomax.github.io/bezierjs/)
- [github](https://github.com/Pomax/bezierjs)

### [openmesh](https://www.graphics.rwth-aachen.de/software/openmesh/)
3 changes: 3 additions & 0 deletions index/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

## 协议

### [mqtt](https://mqtt.org/)
MQTT(Message Queuing Telemetry Transport,消息队列遥测传输协议),是一种基于发布/订阅(publish/subscribe)模式的“轻量级”通讯协议,该协议构建于TCP/IP协议上,由IBM在1999年发布。

### Fair-code

- [Fair-code, is not a software license, it describes a software model where software:一种旨在使开发人员获得报酬的开源替代方案](https://faircode.io/)
Expand Down
6 changes: 6 additions & 0 deletions index/computerScience.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
- [点至三角形的最近点](https://zhuanlan.zhihu.com/p/458837573)
- [smallpt: Global Illumination in 99 lines of C++](http://www.kevinbeason.com/smallpt/)
- [多边形网格算法](http://paulbourke.net/geometry/polygonmesh/)
- [manifold,Manifold is a geometry library dedicated to creating and operating on manifold triangle meshes. A manifold mesh is a mesh that represents a solid object, and so is very important in manufacturing, CAD, structural analysis, etc. Further information can be found on the wiki.](https://github.com/elalish/manifold)
- [manifold-3d npm](https://www.npmjs.com/package/manifold-3d)
- [3D打印模型文件](https://www.thingiverse.com/)
- [bezierjs ](https://pomax.github.io/bezierjs/)
- [github](https://github.com/Pomax/bezierjs)

### Engine

Expand All @@ -40,6 +45,7 @@
- [Beispiele webGL mit three.js ](https://hofk.de/main/threejs/)
- [3D Grafik - WebGL mit three.js](https://xprofan.net/intl/de/php,html,js/3d-grafik-webgl-mit-three-js/)
- [use your mouse to control the camera and build an andorid](https://hofk.de/main/threejs/raycaster/raycaster.html)
- [webgl examples](https://alteredqualia.com/)

### Tool

Expand Down
5 changes: 5 additions & 0 deletions math/pbr3ed.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ <h5>5.4 Radiometry辐射度学</h5>
<p>radiometry提供了一系列的主意和数学工具来描述light的传播和反射,它是形成渲染算法的基础,radiometry首先引入图形学不是因为物理光的原则,而是作为空间粒子的抽象光属性。</p>
<p>Radiative transfer辐射传输是radiant energy辐射能量传输的现象研究。辐射传输基于辐射原理和几何光学水平的操作,光的微波属性用来描述光与物体交互时比光的波长要长的。辐射度学与Maxwell经典方程描述了电子场域</p>
<p>在pbrt中,假设几何光学最需要</p>
<p><em>Energy能量</em>,以joules\((\mathcal{J})\)焦耳为单位。光源发射光子photons,每个光子以特定波长并携带一定的能量。辐射量学就是以不同方式测量光子。一个光子在特定波长\(\lambda\)携带的能量是</p>
<p>$$\mathcal{Q}=\frac{hc}{\lambda}$$</p>
<p>其中的c是光速,h是普朗克常数</p>
<p><em>Flux通量</em>,Radiant flux,是穿过表面surface或区域region of space的单位时间内的总能量</p>
<p>$$\Phi=\lim\limits_{{\Delta}t \to 0}\frac{{\Delta}Q}{{\Delta}t}=\frac{dQ}{dt}$$</p>
</div>
</div>
</div>
Expand Down
7 changes: 6 additions & 1 deletion nodejs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@

Parcel is a zero configuration build tool for the web

- [Parcel](https://parceljs.org/docs/)
- [Parcel](https://parceljs.org/docs/)

## 使用的库

- [jspdf](https://github.com/parallax/jsPDF)
- [npmjs](https://www.npmjs.com/package/jspdf)
2 changes: 1 addition & 1 deletion web/nginx/9950.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server {
listen 9930;
listen 9950;
server_name localhost;
#
charset utf-8;
Expand Down
3 changes: 3 additions & 0 deletions web/nginx/nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ sudo apt-get update
sudo apt-get install -y nginx
sudo service nginx start 启动服务
sudo service nginx stop
nginx -s signal // stop quit reload reopen
nginx -h
nginx -t 测试配置
```

### 配置
Expand Down
4 changes: 2 additions & 2 deletions web/nginx/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ xcopy /s /e /i /y win\nginx.conf e:\tools\nginx-1.25.0\conf\nginx.conf

(Get-Content f:\meijie\lmj01.github.io\web\nginx\lmj01.conf) -Replace '/mnt/f/meijie/lmj01.github.io', 'f:/meijie/lmj01.github.io' | Set-Content e:\tools\nginx-1.25.0\conf\conf.d\lmj01.conf

# (Get-Content f:\meijie\lmj01.github.io\web\nginx\9930.conf) -Replace '/mnt/f/fullstack/mjdemo', 'f:/fullstack/mjdemo' | Set-Content e:\tools\nginx-1.25.0\conf\conf.d\9930.conf
(Get-Content f:\meijie\lmj01.github.io\web\nginx\9930.conf) -Replace '/mnt/f/fullstack/mjdemo', 'f:/fullstack/mjdemo' | Set-Content e:\tools\nginx-1.25.0\conf\conf.d\9930.conf

# 临时的
# (Get-Content f:\meijie\lmj01.github.io\web\nginx\9950.conf) -Replace '/mnt/f/fullstack/mjdemo', 'f:/fullstack/mjdemo' | Set-Content e:\tools\nginx-1.25.0\conf\conf.d\9950.conf
(Get-Content f:\meijie\lmj01.github.io\web\nginx\9950.conf) -Replace '/mnt/f/fullstack/mjdemo', 'F:\masteralign\vite-clinic\dist_ebrace' | Set-Content e:\tools\nginx-1.25.0\conf\conf.d\9950.conf

# netstat -ano | findstr $str 查看端口占用

Expand Down
8 changes: 8 additions & 0 deletions web/nginx/win/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ http {
autoindex on;
}

location ^~ /mjdemo {
return 301 http://127.0.0.1:9930/;
}

# 反向代理
# 前缀匹配
location ^~ /lmj01 {
Expand All @@ -183,5 +187,9 @@ http {
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
}

location ^~ /vue {
return 301 http://127.0.0.1:9950/;
}
}
}

0 comments on commit 6077e3f

Please sign in to comment.