juliatokai
以下のような画像が出力できるソフトウェア
#declare
, #if
, #while
, #marcro
)camera{
perspective
location <2,1,2>
look_at <0,0,0>
}
light_source{
<2,3,4>
color rgb<1,1,1>
}
background{rgb<1,1,1>}
sphere{<0,0,0>,0.2}
cylinder{<0,0,0>,<1,0,0>,0.1 pigment{rgb<1,0,0>}}
cylinder{<0,0,0>,<0,1,0>,0.1 pigment{rgb<0,1,0>}}
cylinder{<0,0,0>,<0,0,1>,0.1 pigment{rgb<0,0,1>}}
<...>
は2,3,4次元のみ→ JuliaからもPOV-Rayのコードを出力したい!
Sphere
, Box
, Torus
, Polygon
, csgUnion
など.pov
ファイルの生成 (物体やカメラ).ini
ファイルの生成 (レンダリングの設定)run(povray filename.pov)
を実行JuliRay
Camera
ParallelCamera
PerspectiveCamera
Light
PointLight
Object
ColoredObject
rgbColor
rgbftColor
PrimitiveObject
Box
Cone
Cylinder
Disc
Empty
Polygon
Sphere
Torus
TransformedObject
AffineTransform
ParallelTranslation
Scaling
csgObject
csgClip
csgDifference
csgIntersection
csgMerge
csgUnion
Pigment
FT
木構造で管理できるので便利!
2半径のみ指定するトーラス
struct Torus <: PrimitiveObject
R :: Float64
r :: Float64
Torus(R,r) = ?(r == 0) Empty() : new(abs(R),abs(r))
end
中心と法ベクトルと2半径を指定するトーラス
Torus(center::RealVector, normal::RealVector, R::Float64, r::Float64)
3点と半径を指定するトーラス
Torus(p₁::RealVector, p₂::RealVector, p₃::RealVector, r::Float64)
RGB(r,g,b)
を使用RGBA(r,g,b,a)
は使っていない
FT(f,t)
を別に用意して実装
filter transmit
自分で定義した型の等号判定が上手くできない
(これと同じ理由?)
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing