------------------------------------------------------------------------------------------------------------------------------------
On Error GoTo Curve_Exists
Curve.NewCurve "3D-Analytical"
Curve_Exists:
On Error GoTo 0
Dim sCurveName As String
sCurveName = "3dpolygon_1"
With Polygon3D
.Reset
.Name sCurveName
.Curve "3D-Analytical"
' ======================================
' ! Do not change ABOVE this line !
' ======================================
' -----------------------------------------------------------
' adjust x-range as for-loop parameters (xmin,max,step)
' enter y/z-Function-statement within for-loop
' fixed parameters a,b,c have to be declared via Dim-Statement
' -----------------------------------------------------------
' NOTE: available MWS-Parameters can be used without
' declaration at any place (loop-dimensions, ...)
' (for parametric curves during parameter-sweeps and optimisation !)
' -------------------------------------------
Dimx As Double, y As Double, z As Double
Dimrho As Double, theta As Double, phi As Double
Dim t As Double
For t=-0.25*Pi To 0.25*Pi STEP 0.001 ( 此設定剛好繞球一圈)
rho=10 (sphere radius)
theta=t
phi=2*t
x=rho*( sin(theta*100) )*cos(phi)(*100, 控制螺旋圈數)
y=rho*( cos(theta*100) )*cos(phi)
z=-rho*sin(phi)
.Point x, y, z
Next t
' ======================================
' ! Do not change BELOW this line !
' ======================================
.Create
End With
SelectTreeItem("Curves3D-Analytical"+sCurveName)
Spherical spiral.rar
这个是利用cst宏语言编写的,支持一个
多谢楼主辛苦啦·
多谢楼主,值得收藏,有空要好好研究
有空要好好研究
楼主好厉害,见识见识!
请教楼主,螺旋波纹波导如何做?谢谢
学习了,好东东,谢谢!
声明:网友回复良莠不齐,仅供参考。如需更专业系统地学习CST,可以购买资深专家讲授的CST最新视频培训课程。