Deploying to docs from @ snowykami/mbcp@d4fdd90ce2 🚀

This commit is contained in:
远野千束 2024-08-30 09:56:46 +00:00
parent 8767e48d53
commit c3d15d5dfd
154 changed files with 973 additions and 161 deletions

File diff suppressed because one or more lines are too long

24
api/api.html Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

24
api/mp_math/mp_math.html Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

24
api/presets/presets.html Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{_ as t,c as s,o as c,j as e,a}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"mbcp","description":"","frontmatter":{"title":"mbcp","editLink":false,"collapsed":true},"headers":[],"relativePath":"api/api.md","filePath":"zh/api/api.md"}'),o={name:"api/api.md"},i=e("h1",{id:"mbcp",tabindex:"-1"},[a("mbcp "),e("a",{class:"header-anchor",href:"#mbcp","aria-label":'Permalink to "mbcp"'},"")],-1),r=e("p",null,[e("strong",null,"说明"),a(": 本模块塞了一些预设的粒子生成器")],-1),n=[i,r];function p(l,d,_,m,h,f){return c(),s("div",null,n)}const x=t(o,[["render",p]]);export{u as __pageData,x as default};

View File

@ -0,0 +1 @@
import{_ as t,c as s,o as c,j as e,a}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"mbcp","description":"","frontmatter":{"title":"mbcp","editLink":false,"collapsed":true},"headers":[],"relativePath":"api/api.md","filePath":"zh/api/api.md"}'),o={name:"api/api.md"},i=e("h1",{id:"mbcp",tabindex:"-1"},[a("mbcp "),e("a",{class:"header-anchor",href:"#mbcp","aria-label":'Permalink to "mbcp"'},"")],-1),r=e("p",null,[e("strong",null,"说明"),a(": 本模块塞了一些预设的粒子生成器")],-1),n=[i,r];function p(l,d,_,m,h,f){return c(),s("div",null,n)}const x=t(o,[["render",p]]);export{u as __pageData,x as default};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{_ as a,c as r,o as e,a2 as l}from"./chunks/framework.C94oF1kp.js";const p=JSON.parse('{"title":"mbcp.mp_math.mp_math_typing","description":"","frontmatter":{"title":"mbcp.mp_math.mp_math_typing","editLink":false},"headers":[],"relativePath":"api/mp_math/mp_math.md","filePath":"zh/api/mp_math/mp_math.md"}'),n={name:"api/mp_math/mp_math.md"},o=l("",36),i=[o];function c(t,s,u,d,g,v){return e(),r("div",null,i)}const y=a(n,[["render",c]]);export{p as __pageData,y as default};

View File

@ -0,0 +1 @@
import{_ as a,c,o as r,j as e,a as t}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"mbcp.particle","description":"","frontmatter":{"title":"mbcp.particle","editLink":false,"collapsed":true},"headers":[],"relativePath":"api/particle/particle.md","filePath":"zh/api/particle/particle.md"}'),i={name:"api/particle/particle.md"},p=e("h1",{id:"mbcp-particle",tabindex:"-1"},[t("mbcp.particle "),e("a",{class:"header-anchor",href:"#mbcp-particle","aria-label":'Permalink to "mbcp.particle"'},"")],-1),l=e("p",null,[e("strong",null,"说明"),t(": 本模块定义了粒子生成相关的工具")],-1),s=[p,l];function o(n,d,_,m,h,f){return r(),c("div",null,s)}const x=a(i,[["render",o]]);export{u as __pageData,x as default};

View File

@ -0,0 +1 @@
import{_ as a,c,o as r,j as e,a as t}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"mbcp.particle","description":"","frontmatter":{"title":"mbcp.particle","editLink":false,"collapsed":true},"headers":[],"relativePath":"api/particle/particle.md","filePath":"zh/api/particle/particle.md"}'),i={name:"api/particle/particle.md"},p=e("h1",{id:"mbcp-particle",tabindex:"-1"},[t("mbcp.particle "),e("a",{class:"header-anchor",href:"#mbcp-particle","aria-label":'Permalink to "mbcp.particle"'},"")],-1),l=e("p",null,[e("strong",null,"说明"),t(": 本模块定义了粒子生成相关的工具")],-1),s=[p,l];function o(n,d,_,m,h,f){return r(),c("div",null,s)}const x=a(i,[["render",o]]);export{u as __pageData,x as default};

View File

@ -0,0 +1,18 @@
import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.C94oF1kp.js";const y=JSON.parse('{"title":"mbcp.presets.model","description":"","frontmatter":{"title":"mbcp.presets.model","editLink":false,"collapsed":true},"headers":[],"relativePath":"api/presets/model/model.md","filePath":"zh/api/presets/model/model.md"}'),t={name:"api/presets/model/model.md"},h=n(`<h1 id="mbcp-presets-model" tabindex="-1">mbcp.presets.model <a class="header-anchor" href="#mbcp-presets-model" aria-label="Permalink to &quot;mbcp.presets.model&quot;"></a></h1><p><strong>说明</strong>: 几何模型点集</p><h3 id="class-geometricmodels" tabindex="-1"><em><strong>class</strong></em> <code>GeometricModels</code> <a class="header-anchor" href="#class-geometricmodels" aria-label="Permalink to &quot;***class*** \`GeometricModels\`&quot;"></a></h3><p><code>@staticmethod</code></p><h4 id="def-sphere-radius-float-density-float" tabindex="-1"><em><strong>def</strong></em> <code>sphere(radius: float, density: float)</code> <a class="header-anchor" href="#def-sphere-radius-float-density-float" aria-label="Permalink to &quot;***def*** \`sphere(radius: float, density: float)\`&quot;"></a></h4><p><strong>说明</strong>: 生成球体上的点集。</p><p><strong>参数</strong>:</p><blockquote><ul><li>radius:</li><li>density:</li></ul></blockquote><p><strong>返回</strong>: List[Point3]: 球体上的点集。</p><details><summary><b>源代码</b></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">@</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">staticmethod</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> sphere</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(radius: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, density: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 生成球体上的点集</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> radius:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> density:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Returns:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> List[Point3]: 球体上的点集</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> area </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 4</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> *</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.pi </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">**</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> num </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> int</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(area </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> density)</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> phi_list </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.arccos([clamp(</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> +</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> (</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">2.0</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> *</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> _ </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 1.0</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">/</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> num, </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">for</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> _ </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">in</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> range</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(num)])</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> theta_list </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sqrt(num </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.pi) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> phi_list</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> x_array </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sin(phi_list) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.cos(theta_list)</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> y_array </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sin(phi_list) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sin(theta_list)</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> z_array </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.cos(phi_list)</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [Point3(x_array[i], y_array[i], z_array[i]) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">for</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> i </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">in</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> range</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(num)]</span></span></code></pre></div></details>`,10),l=[h];function p(k,e,r,d,E,g){return a(),i("div",null,l)}const F=s(t,[["render",p]]);export{y as __pageData,F as default};

View File

@ -0,0 +1 @@
import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.C94oF1kp.js";const y=JSON.parse('{"title":"mbcp.presets.model","description":"","frontmatter":{"title":"mbcp.presets.model","editLink":false,"collapsed":true},"headers":[],"relativePath":"api/presets/model/model.md","filePath":"zh/api/presets/model/model.md"}'),t={name:"api/presets/model/model.md"},h=n("",10),l=[h];function p(k,e,r,d,E,g){return a(),i("div",null,l)}const F=s(t,[["render",p]]);export{y as __pageData,F as default};

View File

@ -0,0 +1 @@
import{_ as s,c as r,o as a,j as e,a as t}from"./chunks/framework.C94oF1kp.js";const b=JSON.parse('{"title":"mbcp.presets","description":"","frontmatter":{"title":"mbcp.presets","editLink":false,"collapsed":true},"headers":[],"relativePath":"api/presets/presets.md","filePath":"zh/api/presets/presets.md"}'),o={name:"api/presets/presets.md"},i=e("h1",{id:"mbcp-presets",tabindex:"-1"},[t("mbcp.presets "),e("a",{class:"header-anchor",href:"#mbcp-presets","aria-label":'Permalink to "mbcp.presets"'},"")],-1),p=e("p",null,[e("strong",null,"说明"),t(": Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved")],-1),n=e("p",null,[t("@Time : 2024/8/12 下午9:12 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),t(" @File : "),e("strong",null,"init"),t(".py @Software: PyCharm")],-1),l=[i,p,n];function c(m,d,_,h,u,f){return a(),r("div",null,l)}const y=s(o,[["render",c]]);export{b as __pageData,y as default};

View File

@ -0,0 +1 @@
import{_ as s,c as r,o as a,j as e,a as t}from"./chunks/framework.C94oF1kp.js";const b=JSON.parse('{"title":"mbcp.presets","description":"","frontmatter":{"title":"mbcp.presets","editLink":false,"collapsed":true},"headers":[],"relativePath":"api/presets/presets.md","filePath":"zh/api/presets/presets.md"}'),o={name:"api/presets/presets.md"},i=e("h1",{id:"mbcp-presets",tabindex:"-1"},[t("mbcp.presets "),e("a",{class:"header-anchor",href:"#mbcp-presets","aria-label":'Permalink to "mbcp.presets"'},"")],-1),p=e("p",null,[e("strong",null,"说明"),t(": Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved")],-1),n=e("p",null,[t("@Time : 2024/8/12 下午9:12 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),t(" @File : "),e("strong",null,"init"),t(".py @Software: PyCharm")],-1),l=[i,p,n];function c(m,d,_,h,u,f){return a(),r("div",null,l)}const y=s(o,[["render",c]]);export{b as __pageData,y as default};

View File

@ -0,0 +1 @@
import{_ as t,c as s,o as c,j as e,a}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"mbcp","description":"","frontmatter":{"title":"mbcp","editLink":false,"collapsed":true},"headers":[],"relativePath":"en/api/api.md","filePath":"en/api/api.md"}'),n={name:"en/api/api.md"},o=e("h1",{id:"mbcp",tabindex:"-1"},[a("mbcp "),e("a",{class:"header-anchor",href:"#mbcp","aria-label":'Permalink to "mbcp"'},"")],-1),i=e("p",null,[e("strong",null,"Description"),a(": 本模块塞了一些预设的粒子生成器")],-1),r=[o,i];function p(l,d,_,m,h,f){return c(),s("div",null,r)}const x=t(n,[["render",p]]);export{u as __pageData,x as default};

View File

@ -0,0 +1 @@
import{_ as t,c as s,o as c,j as e,a}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"mbcp","description":"","frontmatter":{"title":"mbcp","editLink":false,"collapsed":true},"headers":[],"relativePath":"en/api/api.md","filePath":"en/api/api.md"}'),n={name:"en/api/api.md"},o=e("h1",{id:"mbcp",tabindex:"-1"},[a("mbcp "),e("a",{class:"header-anchor",href:"#mbcp","aria-label":'Permalink to "mbcp"'},"")],-1),i=e("p",null,[e("strong",null,"Description"),a(": 本模块塞了一些预设的粒子生成器")],-1),r=[o,i];function p(l,d,_,m,h,f){return c(),s("div",null,r)}const x=t(n,[["render",p]]);export{u as __pageData,x as default};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{_ as a,c as r,o as e,a2 as l}from"./chunks/framework.C94oF1kp.js";const h=JSON.parse('{"title":"mbcp.mp_math.mp_math_typing","description":"","frontmatter":{"title":"mbcp.mp_math.mp_math_typing","editLink":false},"headers":[],"relativePath":"en/api/mp_math/mp_math.md","filePath":"en/api/mp_math/mp_math.md"}'),n={name:"en/api/mp_math/mp_math.md"},i=l("",36),o=[i];function c(t,s,u,d,p,g){return e(),r("div",null,o)}const y=a(n,[["render",c]]);export{h as __pageData,y as default};

View File

@ -0,0 +1 @@
import{_ as a,c,o as r,j as e,a as t}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"mbcp.particle","description":"","frontmatter":{"title":"mbcp.particle","editLink":false,"collapsed":true},"headers":[],"relativePath":"en/api/particle/particle.md","filePath":"en/api/particle/particle.md"}'),i={name:"en/api/particle/particle.md"},p=e("h1",{id:"mbcp-particle",tabindex:"-1"},[t("mbcp.particle "),e("a",{class:"header-anchor",href:"#mbcp-particle","aria-label":'Permalink to "mbcp.particle"'},"")],-1),l=e("p",null,[e("strong",null,"Description"),t(": 本模块定义了粒子生成相关的工具")],-1),s=[p,l];function n(o,d,_,m,h,f){return r(),c("div",null,s)}const x=a(i,[["render",n]]);export{u as __pageData,x as default};

View File

@ -0,0 +1 @@
import{_ as a,c,o as r,j as e,a as t}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"mbcp.particle","description":"","frontmatter":{"title":"mbcp.particle","editLink":false,"collapsed":true},"headers":[],"relativePath":"en/api/particle/particle.md","filePath":"en/api/particle/particle.md"}'),i={name:"en/api/particle/particle.md"},p=e("h1",{id:"mbcp-particle",tabindex:"-1"},[t("mbcp.particle "),e("a",{class:"header-anchor",href:"#mbcp-particle","aria-label":'Permalink to "mbcp.particle"'},"")],-1),l=e("p",null,[e("strong",null,"Description"),t(": 本模块定义了粒子生成相关的工具")],-1),s=[p,l];function n(o,d,_,m,h,f){return r(),c("div",null,s)}const x=a(i,[["render",n]]);export{u as __pageData,x as default};

View File

@ -0,0 +1,18 @@
import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.C94oF1kp.js";const y=JSON.parse('{"title":"mbcp.presets.model","description":"","frontmatter":{"title":"mbcp.presets.model","editLink":false,"collapsed":true},"headers":[],"relativePath":"en/api/presets/model/model.md","filePath":"en/api/presets/model/model.md"}'),t={name:"en/api/presets/model/model.md"},h=n(`<h1 id="mbcp-presets-model" tabindex="-1">mbcp.presets.model <a class="header-anchor" href="#mbcp-presets-model" aria-label="Permalink to &quot;mbcp.presets.model&quot;"></a></h1><p><strong>Description</strong>: 几何模型点集</p><h3 id="class-geometricmodels" tabindex="-1"><em><strong>class</strong></em> <code>GeometricModels</code> <a class="header-anchor" href="#class-geometricmodels" aria-label="Permalink to &quot;***class*** \`GeometricModels\`&quot;"></a></h3><p><code>@staticmethod</code></p><h4 id="def-sphere-radius-float-density-float" tabindex="-1"><em><strong>def</strong></em> <code>sphere(radius: float, density: float)</code> <a class="header-anchor" href="#def-sphere-radius-float-density-float" aria-label="Permalink to &quot;***def*** \`sphere(radius: float, density: float)\`&quot;"></a></h4><p><strong>Description</strong>: 生成球体上的点集。</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>radius:</li><li>density:</li></ul></blockquote><p><strong>Return</strong>: List[Point3]: 球体上的点集。</p><details><summary><b>Source code</b></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">@</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">staticmethod</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> sphere</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(radius: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, density: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 生成球体上的点集</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> radius:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> density:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Returns:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> List[Point3]: 球体上的点集</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> area </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 4</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> *</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.pi </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">**</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> num </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> int</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(area </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> density)</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> phi_list </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.arccos([clamp(</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> +</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> (</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">2.0</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> *</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> _ </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 1.0</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">/</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> num, </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">for</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> _ </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">in</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> range</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(num)])</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> theta_list </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sqrt(num </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.pi) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> phi_list</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> x_array </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sin(phi_list) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.cos(theta_list)</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> y_array </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sin(phi_list) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sin(theta_list)</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> z_array </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.cos(phi_list)</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [Point3(x_array[i], y_array[i], z_array[i]) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">for</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> i </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">in</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> range</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(num)]</span></span></code></pre></div></details>`,10),l=[h];function p(k,e,r,d,E,o){return a(),i("div",null,l)}const c=s(t,[["render",p]]);export{y as __pageData,c as default};

View File

@ -0,0 +1 @@
import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.C94oF1kp.js";const y=JSON.parse('{"title":"mbcp.presets.model","description":"","frontmatter":{"title":"mbcp.presets.model","editLink":false,"collapsed":true},"headers":[],"relativePath":"en/api/presets/model/model.md","filePath":"en/api/presets/model/model.md"}'),t={name:"en/api/presets/model/model.md"},h=n("",10),l=[h];function p(k,e,r,d,E,o){return a(),i("div",null,l)}const c=s(t,[["render",p]]);export{y as __pageData,c as default};

View File

@ -0,0 +1 @@
import{_ as s,c as r,o as a,j as e,a as t}from"./chunks/framework.C94oF1kp.js";const b=JSON.parse('{"title":"mbcp.presets","description":"","frontmatter":{"title":"mbcp.presets","editLink":false,"collapsed":true},"headers":[],"relativePath":"en/api/presets/presets.md","filePath":"en/api/presets/presets.md"}'),o={name:"en/api/presets/presets.md"},i=e("h1",{id:"mbcp-presets",tabindex:"-1"},[t("mbcp.presets "),e("a",{class:"header-anchor",href:"#mbcp-presets","aria-label":'Permalink to "mbcp.presets"'},"")],-1),n=e("p",null,[e("strong",null,"Description"),t(": Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved")],-1),p=e("p",null,[t("@Time : 2024/8/12 下午9:12 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),t(" @File : "),e("strong",null,"init"),t(".py @Software: PyCharm")],-1),l=[i,n,p];function c(m,d,_,h,u,f){return a(),r("div",null,l)}const y=s(o,[["render",c]]);export{b as __pageData,y as default};

View File

@ -0,0 +1 @@
import{_ as s,c as r,o as a,j as e,a as t}from"./chunks/framework.C94oF1kp.js";const b=JSON.parse('{"title":"mbcp.presets","description":"","frontmatter":{"title":"mbcp.presets","editLink":false,"collapsed":true},"headers":[],"relativePath":"en/api/presets/presets.md","filePath":"en/api/presets/presets.md"}'),o={name:"en/api/presets/presets.md"},i=e("h1",{id:"mbcp-presets",tabindex:"-1"},[t("mbcp.presets "),e("a",{class:"header-anchor",href:"#mbcp-presets","aria-label":'Permalink to "mbcp.presets"'},"")],-1),n=e("p",null,[e("strong",null,"Description"),t(": Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved")],-1),p=e("p",null,[t("@Time : 2024/8/12 下午9:12 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),t(" @File : "),e("strong",null,"init"),t(".py @Software: PyCharm")],-1),l=[i,n,p];function c(m,d,_,h,u,f){return a(),r("div",null,l)}const y=s(o,[["render",c]]);export{b as __pageData,y as default};

View File

@ -0,0 +1 @@
import{_ as e,c as a,o as t,a2 as n}from"./chunks/framework.C94oF1kp.js";const m=JSON.parse('{"title":"Reference","description":"","frontmatter":{},"headers":[],"relativePath":"en/refer/index.md","filePath":"en/refer/index.md"}'),s={name:"en/refer/index.md"},r=n('<h1 id="reference" tabindex="-1">Reference <a class="header-anchor" href="#reference" aria-label="Permalink to &quot;Reference&quot;"></a></h1><p>help us to improve the documentation</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span></span></span></code></pre></div>',3),o=[r];function c(i,d,p,_,l,h){return t(),a("div",null,o)}const u=e(s,[["render",c]]);export{m as __pageData,u as default};

View File

@ -0,0 +1 @@
import{_ as e,c as a,o as t,a2 as n}from"./chunks/framework.C94oF1kp.js";const m=JSON.parse('{"title":"Reference","description":"","frontmatter":{},"headers":[],"relativePath":"en/refer/index.md","filePath":"en/refer/index.md"}'),s={name:"en/refer/index.md"},r=n("",3),o=[r];function c(i,d,p,_,l,h){return t(),a("div",null,o)}const u=e(s,[["render",c]]);export{m as __pageData,u as default};

View File

@ -0,0 +1 @@
import{_ as t,c as s,o as c,j as e,a}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"mbcp","description":"","frontmatter":{"title":"mbcp","editLink":false,"collapsed":true},"headers":[],"relativePath":"ja/api/api.md","filePath":"ja/api/api.md"}'),o={name:"ja/api/api.md"},i=e("h1",{id:"mbcp",tabindex:"-1"},[a("mbcp "),e("a",{class:"header-anchor",href:"#mbcp","aria-label":'Permalink to "mbcp"'},"")],-1),r=e("p",null,[e("strong",null,"説明"),a(": 本模块塞了一些预设的粒子生成器")],-1),n=[i,r];function p(l,d,_,m,h,f){return c(),s("div",null,n)}const x=t(o,[["render",p]]);export{u as __pageData,x as default};

View File

@ -0,0 +1 @@
import{_ as t,c as s,o as c,j as e,a}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"mbcp","description":"","frontmatter":{"title":"mbcp","editLink":false,"collapsed":true},"headers":[],"relativePath":"ja/api/api.md","filePath":"ja/api/api.md"}'),o={name:"ja/api/api.md"},i=e("h1",{id:"mbcp",tabindex:"-1"},[a("mbcp "),e("a",{class:"header-anchor",href:"#mbcp","aria-label":'Permalink to "mbcp"'},"")],-1),r=e("p",null,[e("strong",null,"説明"),a(": 本模块塞了一些预设的粒子生成器")],-1),n=[i,r];function p(l,d,_,m,h,f){return c(),s("div",null,n)}const x=t(o,[["render",p]]);export{u as __pageData,x as default};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{_ as a,c as r,o as e,a2 as l}from"./chunks/framework.C94oF1kp.js";const p=JSON.parse('{"title":"mbcp.mp_math.mp_math_typing","description":"","frontmatter":{"title":"mbcp.mp_math.mp_math_typing","editLink":false},"headers":[],"relativePath":"ja/api/mp_math/mp_math.md","filePath":"ja/api/mp_math/mp_math.md"}'),n={name:"ja/api/mp_math/mp_math.md"},o=l("",36),i=[o];function c(t,s,u,d,g,v){return e(),r("div",null,i)}const y=a(n,[["render",c]]);export{p as __pageData,y as default};

View File

@ -0,0 +1 @@
import{_ as t,c,o as r,j as e,a}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"mbcp.particle","description":"","frontmatter":{"title":"mbcp.particle","editLink":false,"collapsed":true},"headers":[],"relativePath":"ja/api/particle/particle.md","filePath":"ja/api/particle/particle.md"}'),i={name:"ja/api/particle/particle.md"},p=e("h1",{id:"mbcp-particle",tabindex:"-1"},[a("mbcp.particle "),e("a",{class:"header-anchor",href:"#mbcp-particle","aria-label":'Permalink to "mbcp.particle"'},"")],-1),l=e("p",null,[e("strong",null,"説明"),a(": 本模块定义了粒子生成相关的工具")],-1),s=[p,l];function o(n,d,_,m,h,f){return r(),c("div",null,s)}const x=t(i,[["render",o]]);export{u as __pageData,x as default};

View File

@ -0,0 +1 @@
import{_ as t,c,o as r,j as e,a}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"mbcp.particle","description":"","frontmatter":{"title":"mbcp.particle","editLink":false,"collapsed":true},"headers":[],"relativePath":"ja/api/particle/particle.md","filePath":"ja/api/particle/particle.md"}'),i={name:"ja/api/particle/particle.md"},p=e("h1",{id:"mbcp-particle",tabindex:"-1"},[a("mbcp.particle "),e("a",{class:"header-anchor",href:"#mbcp-particle","aria-label":'Permalink to "mbcp.particle"'},"")],-1),l=e("p",null,[e("strong",null,"説明"),a(": 本模块定义了粒子生成相关的工具")],-1),s=[p,l];function o(n,d,_,m,h,f){return r(),c("div",null,s)}const x=t(i,[["render",o]]);export{u as __pageData,x as default};

View File

@ -0,0 +1,18 @@
import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.C94oF1kp.js";const y=JSON.parse('{"title":"mbcp.presets.model","description":"","frontmatter":{"title":"mbcp.presets.model","editLink":false,"collapsed":true},"headers":[],"relativePath":"ja/api/presets/model/model.md","filePath":"ja/api/presets/model/model.md"}'),t={name:"ja/api/presets/model/model.md"},h=n(`<h1 id="mbcp-presets-model" tabindex="-1">mbcp.presets.model <a class="header-anchor" href="#mbcp-presets-model" aria-label="Permalink to &quot;mbcp.presets.model&quot;"></a></h1><p><strong>説明</strong>: 几何模型点集</p><h3 id="class-geometricmodels" tabindex="-1"><em><strong>class</strong></em> <code>GeometricModels</code> <a class="header-anchor" href="#class-geometricmodels" aria-label="Permalink to &quot;***class*** \`GeometricModels\`&quot;"></a></h3><p><code>@staticmethod</code></p><h4 id="def-sphere-radius-float-density-float" tabindex="-1"><em><strong>def</strong></em> <code>sphere(radius: float, density: float)</code> <a class="header-anchor" href="#def-sphere-radius-float-density-float" aria-label="Permalink to &quot;***def*** \`sphere(radius: float, density: float)\`&quot;"></a></h4><p><strong>説明</strong>: 生成球体上的点集。</p><p><strong>引数</strong>:</p><blockquote><ul><li>radius:</li><li>density:</li></ul></blockquote><p><strong>戻り値</strong>: List[Point3]: 球体上的点集。</p><details><summary><b>ソースコード</b></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">@</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">staticmethod</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> sphere</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(radius: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, density: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 生成球体上的点集</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> radius:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> density:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Returns:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> List[Point3]: 球体上的点集</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> area </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 4</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> *</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.pi </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">**</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> num </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> int</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(area </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> density)</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> phi_list </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.arccos([clamp(</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> +</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> (</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">2.0</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> *</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> _ </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 1.0</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">/</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> num, </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">for</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> _ </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">in</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> range</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(num)])</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> theta_list </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sqrt(num </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.pi) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> phi_list</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> x_array </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sin(phi_list) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.cos(theta_list)</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> y_array </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sin(phi_list) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sin(theta_list)</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> z_array </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.cos(phi_list)</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [Point3(x_array[i], y_array[i], z_array[i]) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">for</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> i </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">in</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> range</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(num)]</span></span></code></pre></div></details>`,10),l=[h];function p(k,e,r,d,E,g){return a(),i("div",null,l)}const F=s(t,[["render",p]]);export{y as __pageData,F as default};

View File

@ -0,0 +1 @@
import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.C94oF1kp.js";const y=JSON.parse('{"title":"mbcp.presets.model","description":"","frontmatter":{"title":"mbcp.presets.model","editLink":false,"collapsed":true},"headers":[],"relativePath":"ja/api/presets/model/model.md","filePath":"ja/api/presets/model/model.md"}'),t={name:"ja/api/presets/model/model.md"},h=n("",10),l=[h];function p(k,e,r,d,E,g){return a(),i("div",null,l)}const F=s(t,[["render",p]]);export{y as __pageData,F as default};

View File

@ -0,0 +1 @@
import{_ as s,c as a,o as r,j as e,a as t}from"./chunks/framework.C94oF1kp.js";const b=JSON.parse('{"title":"mbcp.presets","description":"","frontmatter":{"title":"mbcp.presets","editLink":false,"collapsed":true},"headers":[],"relativePath":"ja/api/presets/presets.md","filePath":"ja/api/presets/presets.md"}'),o={name:"ja/api/presets/presets.md"},i=e("h1",{id:"mbcp-presets",tabindex:"-1"},[t("mbcp.presets "),e("a",{class:"header-anchor",href:"#mbcp-presets","aria-label":'Permalink to "mbcp.presets"'},"")],-1),p=e("p",null,[e("strong",null,"説明"),t(": Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved")],-1),n=e("p",null,[t("@Time : 2024/8/12 下午9:12 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),t(" @File : "),e("strong",null,"init"),t(".py @Software: PyCharm")],-1),l=[i,p,n];function c(m,d,_,h,u,f){return r(),a("div",null,l)}const y=s(o,[["render",c]]);export{b as __pageData,y as default};

View File

@ -0,0 +1 @@
import{_ as s,c as a,o as r,j as e,a as t}from"./chunks/framework.C94oF1kp.js";const b=JSON.parse('{"title":"mbcp.presets","description":"","frontmatter":{"title":"mbcp.presets","editLink":false,"collapsed":true},"headers":[],"relativePath":"ja/api/presets/presets.md","filePath":"ja/api/presets/presets.md"}'),o={name:"ja/api/presets/presets.md"},i=e("h1",{id:"mbcp-presets",tabindex:"-1"},[t("mbcp.presets "),e("a",{class:"header-anchor",href:"#mbcp-presets","aria-label":'Permalink to "mbcp.presets"'},"")],-1),p=e("p",null,[e("strong",null,"説明"),t(": Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved")],-1),n=e("p",null,[t("@Time : 2024/8/12 下午9:12 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),t(" @File : "),e("strong",null,"init"),t(".py @Software: PyCharm")],-1),l=[i,p,n];function c(m,d,_,h,u,f){return r(),a("div",null,l)}const y=s(o,[["render",c]]);export{b as __pageData,y as default};

View File

@ -0,0 +1 @@
import{_ as e,c as a,o as t,a2 as n}from"./chunks/framework.C94oF1kp.js";const m=JSON.parse('{"title":"Reference","description":"","frontmatter":{},"headers":[],"relativePath":"ja/refer/index.md","filePath":"ja/refer/index.md"}'),s={name:"ja/refer/index.md"},r=n('<h1 id="reference" tabindex="-1">Reference <a class="header-anchor" href="#reference" aria-label="Permalink to &quot;Reference&quot;"></a></h1><p>Help us to improve the documentation</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span></span></span></code></pre></div>',3),o=[r];function c(i,d,p,_,l,h){return t(),a("div",null,o)}const u=e(s,[["render",c]]);export{m as __pageData,u as default};

View File

@ -0,0 +1 @@
import{_ as e,c as a,o as t,a2 as n}from"./chunks/framework.C94oF1kp.js";const m=JSON.parse('{"title":"Reference","description":"","frontmatter":{},"headers":[],"relativePath":"ja/refer/index.md","filePath":"ja/refer/index.md"}'),s={name:"ja/refer/index.md"},r=n("",3),o=[r];function c(i,d,p,_,l,h){return t(),a("div",null,o)}const u=e(s,[["render",c]]);export{m as __pageData,u as default};

View File

@ -0,0 +1 @@
import{_ as e,c as r,o as t}from"./chunks/framework.C94oF1kp.js";const _=JSON.parse('{"title":"柯里化","description":"","frontmatter":{"title":"柯里化"},"headers":[],"relativePath":"refer/function/curry.md","filePath":"zh/refer/function/curry.md"}'),c={name:"refer/function/curry.md"};function n(a,o,s,f,i,p){return t(),r("div")}const d=e(c,[["render",n]]);export{_ as __pageData,d as default};

View File

@ -0,0 +1 @@
import{_ as e,c as r,o as t}from"./chunks/framework.C94oF1kp.js";const _=JSON.parse('{"title":"柯里化","description":"","frontmatter":{"title":"柯里化"},"headers":[],"relativePath":"refer/function/curry.md","filePath":"zh/refer/function/curry.md"}'),c={name:"refer/function/curry.md"};function n(a,o,s,f,i,p){return t(),r("div")}const d=e(c,[["render",n]]);export{_ as __pageData,d as default};

View File

@ -0,0 +1 @@
import{_ as t,c as e,o as n}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"函数","description":"","frontmatter":{"title":"函数"},"headers":[],"relativePath":"refer/function/function.md","filePath":"zh/refer/function/function.md"}'),o={name:"refer/function/function.md"};function r(c,a,f,i,s,_){return n(),e("div")}const d=t(o,[["render",r]]);export{u as __pageData,d as default};

View File

@ -0,0 +1 @@
import{_ as t,c as e,o as n}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"函数","description":"","frontmatter":{"title":"函数"},"headers":[],"relativePath":"refer/function/function.md","filePath":"zh/refer/function/function.md"}'),o={name:"refer/function/function.md"};function r(c,a,f,i,s,_){return n(),e("div")}const d=t(o,[["render",r]]);export{u as __pageData,d as default};

View File

@ -0,0 +1 @@
import{_ as e,c as t,o as a,a2 as n}from"./chunks/framework.C94oF1kp.js";const m=JSON.parse('{"title":"参考","description":"","frontmatter":{"title":"参考"},"headers":[],"relativePath":"refer/index.md","filePath":"zh/refer/index.md"}'),s={name:"refer/index.md"},r=n('<h1 id="reference" tabindex="-1">Reference <a class="header-anchor" href="#reference" aria-label="Permalink to &quot;Reference&quot;"></a></h1><p>Help us to improve the documentation</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span></span></span></code></pre></div>',3),o=[r];function i(c,d,p,_,l,h){return a(),t("div",null,o)}const u=e(s,[["render",i]]);export{m as __pageData,u as default};

View File

@ -0,0 +1 @@
import{_ as e,c as t,o as a,a2 as n}from"./chunks/framework.C94oF1kp.js";const m=JSON.parse('{"title":"参考","description":"","frontmatter":{"title":"参考"},"headers":[],"relativePath":"refer/index.md","filePath":"zh/refer/index.md"}'),s={name:"refer/index.md"},r=n("",3),o=[r];function i(c,d,p,_,l,h){return a(),t("div",null,o)}const u=e(s,[["render",i]]);export{m as __pageData,u as default};

View File

@ -0,0 +1 @@
import{_ as t,c as s,o as c,j as e,a}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"mbcp","description":"","frontmatter":{"title":"mbcp","editLink":false,"collapsed":true},"headers":[],"relativePath":"zht/api/api.md","filePath":"zht/api/api.md"}'),o={name:"zht/api/api.md"},i=e("h1",{id:"mbcp",tabindex:"-1"},[a("mbcp "),e("a",{class:"header-anchor",href:"#mbcp","aria-label":'Permalink to "mbcp"'},"")],-1),r=e("p",null,[e("strong",null,"説明"),a(": 本模块塞了一些预设的粒子生成器")],-1),n=[i,r];function p(l,d,_,m,h,f){return c(),s("div",null,n)}const x=t(o,[["render",p]]);export{u as __pageData,x as default};

View File

@ -0,0 +1 @@
import{_ as t,c as s,o as c,j as e,a}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"mbcp","description":"","frontmatter":{"title":"mbcp","editLink":false,"collapsed":true},"headers":[],"relativePath":"zht/api/api.md","filePath":"zht/api/api.md"}'),o={name:"zht/api/api.md"},i=e("h1",{id:"mbcp",tabindex:"-1"},[a("mbcp "),e("a",{class:"header-anchor",href:"#mbcp","aria-label":'Permalink to "mbcp"'},"")],-1),r=e("p",null,[e("strong",null,"説明"),a(": 本模块塞了一些预设的粒子生成器")],-1),n=[i,r];function p(l,d,_,m,h,f){return c(),s("div",null,n)}const x=t(o,[["render",p]]);export{u as __pageData,x as default};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{_ as a,c as r,o as e,a2 as l}from"./chunks/framework.C94oF1kp.js";const p=JSON.parse('{"title":"mbcp.mp_math.mp_math_typing","description":"","frontmatter":{"title":"mbcp.mp_math.mp_math_typing","editLink":false},"headers":[],"relativePath":"zht/api/mp_math/mp_math.md","filePath":"zht/api/mp_math/mp_math.md"}'),n={name:"zht/api/mp_math/mp_math.md"},o=l("",36),i=[o];function c(t,s,u,d,g,v){return e(),r("div",null,i)}const y=a(n,[["render",c]]);export{p as __pageData,y as default};

View File

@ -0,0 +1 @@
import{_ as a,c,o as r,j as e,a as t}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"mbcp.particle","description":"","frontmatter":{"title":"mbcp.particle","editLink":false,"collapsed":true},"headers":[],"relativePath":"zht/api/particle/particle.md","filePath":"zht/api/particle/particle.md"}'),i={name:"zht/api/particle/particle.md"},p=e("h1",{id:"mbcp-particle",tabindex:"-1"},[t("mbcp.particle "),e("a",{class:"header-anchor",href:"#mbcp-particle","aria-label":'Permalink to "mbcp.particle"'},"")],-1),l=e("p",null,[e("strong",null,"説明"),t(": 本模块定义了粒子生成相关的工具")],-1),s=[p,l];function o(n,d,_,m,h,f){return r(),c("div",null,s)}const x=a(i,[["render",o]]);export{u as __pageData,x as default};

View File

@ -0,0 +1 @@
import{_ as a,c,o as r,j as e,a as t}from"./chunks/framework.C94oF1kp.js";const u=JSON.parse('{"title":"mbcp.particle","description":"","frontmatter":{"title":"mbcp.particle","editLink":false,"collapsed":true},"headers":[],"relativePath":"zht/api/particle/particle.md","filePath":"zht/api/particle/particle.md"}'),i={name:"zht/api/particle/particle.md"},p=e("h1",{id:"mbcp-particle",tabindex:"-1"},[t("mbcp.particle "),e("a",{class:"header-anchor",href:"#mbcp-particle","aria-label":'Permalink to "mbcp.particle"'},"")],-1),l=e("p",null,[e("strong",null,"説明"),t(": 本模块定义了粒子生成相关的工具")],-1),s=[p,l];function o(n,d,_,m,h,f){return r(),c("div",null,s)}const x=a(i,[["render",o]]);export{u as __pageData,x as default};

View File

@ -0,0 +1,18 @@
import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.C94oF1kp.js";const y=JSON.parse('{"title":"mbcp.presets.model","description":"","frontmatter":{"title":"mbcp.presets.model","editLink":false,"collapsed":true},"headers":[],"relativePath":"zht/api/presets/model/model.md","filePath":"zht/api/presets/model/model.md"}'),t={name:"zht/api/presets/model/model.md"},h=n(`<h1 id="mbcp-presets-model" tabindex="-1">mbcp.presets.model <a class="header-anchor" href="#mbcp-presets-model" aria-label="Permalink to &quot;mbcp.presets.model&quot;"></a></h1><p><strong>説明</strong>: 几何模型点集</p><h3 id="class-geometricmodels" tabindex="-1"><em><strong>class</strong></em> <code>GeometricModels</code> <a class="header-anchor" href="#class-geometricmodels" aria-label="Permalink to &quot;***class*** \`GeometricModels\`&quot;"></a></h3><p><code>@staticmethod</code></p><h4 id="def-sphere-radius-float-density-float" tabindex="-1"><em><strong>def</strong></em> <code>sphere(radius: float, density: float)</code> <a class="header-anchor" href="#def-sphere-radius-float-density-float" aria-label="Permalink to &quot;***def*** \`sphere(radius: float, density: float)\`&quot;"></a></h4><p><strong>説明</strong>: 生成球体上的点集。</p><p><strong>變數説明</strong>:</p><blockquote><ul><li>radius:</li><li>density:</li></ul></blockquote><p><strong>返回</strong>: List[Point3]: 球体上的点集。</p><details><summary><b>源碼</b></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">@</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">staticmethod</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> sphere</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(radius: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, density: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 生成球体上的点集</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> radius:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> density:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Returns:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> List[Point3]: 球体上的点集</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> area </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 4</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> *</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.pi </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">**</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> num </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> int</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(area </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> density)</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> phi_list </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.arccos([clamp(</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> +</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> (</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">2.0</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> *</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> _ </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 1.0</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">/</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> num, </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">for</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> _ </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">in</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> range</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(num)])</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> theta_list </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sqrt(num </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.pi) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> phi_list</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> x_array </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sin(phi_list) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.cos(theta_list)</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> y_array </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sin(phi_list) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sin(theta_list)</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> z_array </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.cos(phi_list)</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [Point3(x_array[i], y_array[i], z_array[i]) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">for</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> i </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">in</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> range</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(num)]</span></span></code></pre></div></details>`,10),l=[h];function p(k,e,r,d,E,g){return a(),i("div",null,l)}const F=s(t,[["render",p]]);export{y as __pageData,F as default};

View File

@ -0,0 +1 @@
import{_ as s,c as i,o as a,a2 as n}from"./chunks/framework.C94oF1kp.js";const y=JSON.parse('{"title":"mbcp.presets.model","description":"","frontmatter":{"title":"mbcp.presets.model","editLink":false,"collapsed":true},"headers":[],"relativePath":"zht/api/presets/model/model.md","filePath":"zht/api/presets/model/model.md"}'),t={name:"zht/api/presets/model/model.md"},h=n("",10),l=[h];function p(k,e,r,d,E,g){return a(),i("div",null,l)}const F=s(t,[["render",p]]);export{y as __pageData,F as default};

View File

@ -0,0 +1 @@
import{_ as s,c as r,o as a,j as e,a as t}from"./chunks/framework.C94oF1kp.js";const b=JSON.parse('{"title":"mbcp.presets","description":"","frontmatter":{"title":"mbcp.presets","editLink":false,"collapsed":true},"headers":[],"relativePath":"zht/api/presets/presets.md","filePath":"zht/api/presets/presets.md"}'),o={name:"zht/api/presets/presets.md"},i=e("h1",{id:"mbcp-presets",tabindex:"-1"},[t("mbcp.presets "),e("a",{class:"header-anchor",href:"#mbcp-presets","aria-label":'Permalink to "mbcp.presets"'},"")],-1),p=e("p",null,[e("strong",null,"説明"),t(": Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved")],-1),n=e("p",null,[t("@Time : 2024/8/12 下午9:12 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),t(" @File : "),e("strong",null,"init"),t(".py @Software: PyCharm")],-1),l=[i,p,n];function c(m,d,h,_,u,f){return a(),r("div",null,l)}const y=s(o,[["render",c]]);export{b as __pageData,y as default};

View File

@ -0,0 +1 @@
import{_ as s,c as r,o as a,j as e,a as t}from"./chunks/framework.C94oF1kp.js";const b=JSON.parse('{"title":"mbcp.presets","description":"","frontmatter":{"title":"mbcp.presets","editLink":false,"collapsed":true},"headers":[],"relativePath":"zht/api/presets/presets.md","filePath":"zht/api/presets/presets.md"}'),o={name:"zht/api/presets/presets.md"},i=e("h1",{id:"mbcp-presets",tabindex:"-1"},[t("mbcp.presets "),e("a",{class:"header-anchor",href:"#mbcp-presets","aria-label":'Permalink to "mbcp.presets"'},"")],-1),p=e("p",null,[e("strong",null,"説明"),t(": Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved")],-1),n=e("p",null,[t("@Time : 2024/8/12 下午9:12 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),t(" @File : "),e("strong",null,"init"),t(".py @Software: PyCharm")],-1),l=[i,p,n];function c(m,d,h,_,u,f){return a(),r("div",null,l)}const y=s(o,[["render",c]]);export{b as __pageData,y as default};

View File

@ -0,0 +1 @@
import{_ as e,c as t,o as a,a2 as n}from"./chunks/framework.C94oF1kp.js";const m=JSON.parse('{"title":"Reference","description":"","frontmatter":{},"headers":[],"relativePath":"zht/refer/index.md","filePath":"zht/refer/index.md"}'),s={name:"zht/refer/index.md"},r=n('<h1 id="reference" tabindex="-1">Reference <a class="header-anchor" href="#reference" aria-label="Permalink to &quot;Reference&quot;"></a></h1><p>Help us to improve the documentation</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span></span></span></code></pre></div>',3),o=[r];function c(i,d,p,_,l,h){return a(),t("div",null,o)}const u=e(s,[["render",c]]);export{m as __pageData,u as default};

View File

@ -0,0 +1 @@
import{_ as e,c as t,o as a,a2 as n}from"./chunks/framework.C94oF1kp.js";const m=JSON.parse('{"title":"Reference","description":"","frontmatter":{},"headers":[],"relativePath":"zht/refer/index.md","filePath":"zht/refer/index.md"}'),s={name:"zht/refer/index.md"},r=n("",3),o=[r];function c(i,d,p,_,l,h){return a(),t("div",null,o)}const u=e(s,[["render",c]]);export{m as __pageData,u as default};

File diff suppressed because one or more lines are too long

24
en/api/api.html Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

24
en/refer/index.html Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More