-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
199 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# 技术方案 | ||
|
||
## C++ | ||
|
||
UI: U++, | ||
Kaitai Struct, 二进制文件解析 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# cycles | ||
|
||
> Cycles is a path tracing renderer focused on interactivity and ease of use, while supporting many production features. | ||
## 源文件 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# [Learn OpenGL](https://learnopengl.com/) | ||
|
||
## Advanced OpenGL | ||
|
||
### Stencil testing | ||
|
||
模板测试,Object outlining的流程处理给出了一个方案 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# ModelFile | ||
|
||
- [file format documentation](https://docs.fileformat.com/) | ||
media-types.xhtml) | ||
模型文件格式 | ||
- [Kaitai Struct是开发二进制结构解析器的工具。它提供了一种类似YAML的语言,可以简洁地定义二进制结构](http://kaitai.io/#what-is-it) | ||
|
||
## STL | ||
|
||
- [stl format](http://www.fabbers.com/tech/STL_Format) | ||
- [STL (STereoLithography) File Format, Binary](https://www.loc.gov/preservation/digital/formats/fdd/fdd000505.shtml) | ||
- [What Is an STL File? – The STL Format Simply Explained](https://all3dp.com/1/stl-file-format-3d-printing/) | ||
- [stl parse library](http://formats.kaitai.io/stl/javascript.html) | ||
|
||
文本ASCII格式 | ||
```js | ||
solid name | ||
facet normal ni nj nk | ||
outer loop | ||
vertex v1x v1y v1z | ||
vertex v2x v2y v2z | ||
vertex v3x v3y v3z | ||
endloop | ||
endfacet | ||
...xxxx // facet repeat | ||
endsolid name | ||
``` | ||
二进制binary格式 | ||
```js | ||
UINT8[80] – Header// 80个字节的文件名 | ||
UINT32 – Number of triangles// 4个字节的面数 | ||
foreach triangle | ||
REAL32[3] – Normal vector// normal,3个4个字节的浮点数 | ||
REAL32[3] – Vertex 1// x,3个4个字节的浮点数 | ||
REAL32[3] – Vertex 2// y,3个4个字节的浮点数 | ||
REAL32[3] – Vertex 3// z,3个4个字节的浮点数 | ||
UINT16 – Attribute byte count// attribute byte counted 2个字节 | ||
end | ||
``` | ||
总的大小字节数为80+4+50*facetCount | ||
|
||
### Tessellation | ||
|
||
Tessellation is the process of tiling a surface with one or more geometric shapes so there are no overlaps or gaps. | ||
|
||
The basic idea was to tessellate the two-dimensional outer surface of 3D models using tiny triangles (also called “facets”) and store information about the facets in a file. | ||
|
||
#### The Vertex Rule | ||
|
||
The vertex rule states that each triangle must share two vertices with its neighboring triangles. | ||
|
||
![](../images/cg/stl-valid-and-invalid-tessellation.png) | ||
|
||
#### The Orientation Rule | ||
The orientation rule says that the orientation of the facet (i.e. which way is “in” the 3D object and which way is “out”) must be specified in two ways. | ||
|
||
![](../images/cg/stl-orientation-%20of-the-facet.png) | ||
|
||
### [DICOM](https://dicom.nema.org/medical/dicom/final/sup205_ft_DICOM_Encapsulation_of_STL_Models_for_3D_Manufacturing.pdf) | ||
|
||
In 2018, Working Group 17 for the Digital Imaging and Communications in Medicine (DICOM) standard published Supplement 205, DICOM Encapsulation of STL Models for 3D Manufacturing, which allows for the wrapping of a binary STL file in the standard DICOM container used for the communication and management of medical imaging information and related data. The supplement states, "The goal of encapsulating a Stereolithography (STL) 3D manufacturing model file inside a DICOM instance rather than transforming the data into a different representation is to facilitate preservation of the STL file in the exact form that it is used with extant manufacturing devices, while at the same time unambiguously associating it with the patient for whose care the model was created and the images from which the model was derived." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# 数据加载 | ||
|
||
## Loader | ||
相对路径为src\loaders\Loader.js,LoadingManager两个类管理封装了基础接口 | ||
继承的加载器需要实现两个接口,一个是请求,一个是解析 | ||
```js | ||
XXXLoader extends Loader { | ||
load(url, onLoad, onProgress, onError) { | ||
|
||
} | ||
parse(data) { | ||
|
||
} | ||
} | ||
``` | ||
LoadingManager是一个独立封装的,类似一个函数,全部在constructor中实现,至少用了class的语法 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.