Revolved範例
#! UGNX/KF 2.0
DefClass: Ex_askRevolvedFace(ug_base_part);
(Integer Parameter) ulines: 10;
(Integer Parameter) vlines: 20;
(Boolean Parameter) shaded: True;
(Point Parameter) reference_point: point(0,0,0);
(Child) spline_thru: {
Class, ug_spline_thru;
};
(Child) revolved: {
Class, ug_revolved;
Profile, {spline_thru:};
Start_Limit, 90;
End_Limit, 270;
Thru_point, point(0,-1,0);
Direction, vector(1,0,0);
};
(List) face: ug_feature_askFaces(revolved;
(Child) face01: {
Class; ug_face;
References, {first(face};
U_Grid_Count, ulines:;
V_Grid_Count, vlines:;
Shaded, shaded:;
}; |