收藏 分享(赏)

Rhinoscript常用的函数命令.doc

上传人:myw993772 文档编号:8200782 上传时间:2019-06-13 格式:DOC 页数:9 大小:85KB
下载 相关 举报
Rhinoscript常用的函数命令.doc_第1页
第1页 / 共9页
Rhinoscript常用的函数命令.doc_第2页
第2页 / 共9页
Rhinoscript常用的函数命令.doc_第3页
第3页 / 共9页
Rhinoscript常用的函数命令.doc_第4页
第4页 / 共9页
Rhinoscript常用的函数命令.doc_第5页
第5页 / 共9页
点击查看更多>>
资源描述

1、建筑形态设计常用 Rhino Script 函数Application MethodsCommand 运行仅一条内部命令LastCommandResult 返回上一命令的执行结果Print / PrintEx 向命令行显示一条信息SendKeyStrokes 向命令行传送字符可包括回车Ortho / Osnap / Planar / ProjectOsnaps 打开或关闭或返回辅助绘图OsnapMode 设定或返回对象捕捉类型Exit 结束 RhinoDocument MethodsCreatePreviewImage 抓屏EnableRedraw / Redraw 使能/触发屏幕重画Sele

2、ction MethodsFirstObject / NextObject / LastObject 内存最新/下一个/ 最老对象GetPointCoordinates / GetCurveObject / GetSurfaceObject / GetObject / GetObjects互动选取点、线、面、对象LastCreatedObjects 选取最新一群创建的对象ObjectsByGroup / ObjectsByLayer / ObjectsByType / ObjectsByName符合条件选对象群Object Methods属性查询类IsObjectSolidObjectDesc

3、riptionObjectType属性查询设置类ObjectColorObjectLayerObjectName / ObjectNames几何变换类CopyObject / CopyObjectsDeleteObject / DeleteObjectsMirrorObject / MirrorObjectsMoveObject / MoveObjectsOrientObject / OrientObjectsRotateObject / RotateObjectsScaleObject / ScaleObjectsShearObject / ShearObjectsCurve Methods

4、创建类AddCurve 建控制点曲线AddInterpCurve / AddInterpCurveEx 建穿越点曲线AddInterpCrvOnSrf 在给定曲面上建曲线AddInterpCrvOnSrfUV 在给定曲面上用曲面座标建线AddNurbsCurve 根据 point,knot,degree 建曲线AddSubCrv 用参数从头至尾取曲线一段AddLine 建直线AddPolyline 建折线MeshPolyline 以折线建 mesh编辑类ConvertCurveToPolyline 转曲线为折线CurveBrepIntersect ?有问题(无法选取曲线)CloseCurve

5、闭合曲线CurveSeam 改变闭合点DivideCurve / DivideCurveLength 分段ExplodeCurves 炸开ExtendCurve / ExtendCurveLength / ExtendCurvePoint 延长非闭合线FairCurve 减小曲线的曲率变化InsertCurveKnot 加入节点JoinCurves 连接曲线MakeCurvePeriodic 使拼接曲线连贯封闭OffsetCurve 间距ReverseCurve 反转曲线方向SimplifyCurve 简化曲线SplitCurve 某点断开TrimCurve 裁剪属性查询类ArcAngle 返

6、回角度ArcCenterPoint / CircleCenterPoint 返回中心ArcMidPoint / CurveMidPoint 返回中点ArcRadius / CircleRadius / CurveRadius 返回半径CircleCircumference 返回周长CurveArea 返回面积CurveArcLengthPoint 返回曲线定长处点CurveAreaCentroid 返回质心CurveClosestPoint 返回曲线上某点的曲线坐标CurveCurvature 返回曲率CurveDegree 返回度数CurveDim ?永远返回 3CurveDiscontin

7、uity 返回曲线不连续点CurveDomain ?定义不明CurveEditPoints 返回曲线穿越的编辑点CurveEndPoint / CurveStartPoint 返回曲线始末点CurveEvaluate ?不懂EvaluateCurve 用曲线参数确定点坐标CurveFrame 返回某点切向/曲向平面文档案例第 9 行错误CurvePerpFrame 返回某点切向为 Z 轴平面文档案例第 9 行错误CurveKnotCount / CurvePointCount 返回节点数CurveKnots / CurvePoints 返回节点坐标CurveWeights 返回权重CurveL

8、ength 返回长度CurveNormal 返回曲面法线CurvePlane 返回平面曲线的所在平面CurveTangent 返回某点切向IsArc / IsCircle / IsCurve 返回类型IsCurveClosable 返回是否可用 6 点闭合IsCurveClosed 返回是否闭合IsCurveInPlane 返回是否曲线在一特定平面上IsCurvePlanar 返回是否曲线全在平面IsCurveLinear 返回是否曲线为一直线IsCurvePeriodic 返回是否曲线无头无尾IsCurveRational 返回是否由弧线组成IsLine / IsPolyCurve / Is

9、Polyline 返回曲线类型PolyCurveCount 返回多段曲线的段数PolylineVertices 返回折线顶点关系查询类CurveCurveIntersection 两曲线相交重合情况CurveDeviation 两曲线间的最大最小距离CurveDirectionsMatch 两曲线方是否同向(算法不明)CurveSurfaceIntersection 曲线与曲面相交重合情况IsPointOnCurve 点是否在曲线PlanarClosedCurveContainment 两平面闭合曲线的关系无法判断有一个交点的内包含,其会被认为是相交PlanarCurveCollision 两

10、共面曲线是否相交PointInPlanarClosedCurve 点与平面闭合曲线的关系Surface Methods创建图元AddBox / AddCone / AddCylinder 拼接 polysurfaceAddSphere / AddTorus / 连续 surface创建 surfaceAddSrfPt / AddPlaneSurface / AddEdgeSrf/ AddLoftSrf / AddRailRevSrf / AddRevSrf / ExtrudeCurve / ExtrudeCurvePoint / ExtrudeCurveStraight / ExtrudeSu

11、rface常见建面方式AddNurbsSurface 建 NURBS 曲面AddPlanarSrf 用共面曲线建平面AddSrfControlPtGrid 用控制点建曲面AddSrfPtGrid 用过点建面编辑类BooleanDifference / BooleanIntersection / BooleanUnion布尔运算CapPlanarHoles 补孔ExplodePolysurfaces 打碎面JoinSurfaces 连接面FlipSurface 反转法向InsertSurfaceKnot 给面加节点MakeSurfacePeriodic 消除闭合曲面始末交接的节OffsetSur

12、face 位移复制ShrinkTrimmedSurface 把经切割的原面缩至切割边界SplitBrep 分割曲面属性查询类IsBrep Boundary Representation ObjectIsPlaneSurface / IsSurfacePlanar ?是否为一平面没区别?IsPolysurface 是否由两个以上 surface 组成IsPolysurfaceClosed 是否是 solidIsPolysurfacePlanar 是否共面IsSurface 是否为面IsSurfaceClosed 是否面闭合(UV 两向)IsSurfacePeriodic 是否面闭合且连续(UV

13、两向)IsSurfaceRational 是否为弧线或椭圆线面IsSurfaceSingular 是否某一方向收于一点IsSurfaceTrimmed 是否曾被裁剪SurfaceArea 返回面积SurfaceAreaCentroid 返回质心SurfaceAreaMoments 返回面积贯性弯矩SurfaceVolume 返回 solid 体积SurfaceVolumeCentroid 返回 solid 质心SurfaceVolumeMoments 返回体惯性矩SurfaceCurvature 返回某点曲率SurfaceCurvatureAnalysis 返回四种曲率分析结果SurfaceD

14、egree 返回某点度数SurfaceDomain ?不懂SurfaceEditPoints 返回编辑点其与控制点对应SurfaceKnotCount / SurfaceKnots 返回节点数/节点SurfacePointCount / SurfacePoints / SurfaceWeights 返回控制点数/控制点/ 权重SurfaceIsocurveDensity ?不懂SurfaceNormal 返回某点法线PullCurve 已知一曲线在面上法线投影SurfacePrincipalCurvature 面上一点的最大最小曲率弧几何查询类BrepClosestPoint / Surfac

15、eClosestPoint 返回曲面上距给定点最近点DuplicateEdgeCurves 返回曲面的边界曲线EvaluateSurface 用 UV 参数确定表面坐标SurfaceEvaluate ?不懂ExtractIsoCurve 返回曲面上一点的 UV 轴线?IntersectBreps / SurfaceSurfaceIntersection 返回两曲面交线IsPointInSurface 判断一点是否在曲面体内IsPointOnSurface 判断一点是否在曲面上ShortPath 返回曲面上两点间的最短路径SurfaceContourPoints 返回等高线顶点SurfaceFr

16、ame 返回曲面上选定点的切向平面Geometry Methods创建类AddPoint / AddPoints 加点或点群AddPointCloud 加点云(为一个对象)AddText 加文字VectorCreate 建一矢量PlaneFitFromPoints 用一群点拟合建 CplanePlaneFromFrame 用两个矢量一个原点建 CplanePlaneFromNormal 用法线矢量建 CplanePlaneFromPoints 用三点建 CplaneWorldXYPlane / WorldYZPlane / WorldZXPlane 建顶、侧、前 Cplane编辑类MovePl

17、ane 移动 CplaneRotatePlane 旋转 CplanePointAdd / PointSubtract 点加、减矢量成新点PointDivide / PointScale 点坐标缩放矢量运算VectorAdd / VectorSubtract 矢量加减VectorCrossProduct 返回与两个矢量平面垂直矢量VectorDotProduct 返回|a|*|b|*cos 夹角VectorMultiply / VectorDivide 矢量乘除VectorScale 矢量缩放VectorReverse 矢量反向VectorRotate 矢量旋转VectorUnitize 矢量单

18、元化为长度 1常数与转换函数PI 圆周率ToDegrees / ToRadians 弧度转角度Polar 以极坐标求笛卡儿坐标XformCPlaneToWorld / XformWorldToCPlane 点坐标在不同坐标系间转换属性查询类BoundingBox 返回对象的三轴范围IsVectorTiny 返回是否矢量太小于 1e-12IsVectorZero 返回是否矢量为零PlaneEquation 返回 Cplane 方程四系数PointCloudCount / PointCloudPoints 返回点云内点数、各点坐标VectorLength 返回矢量长度属性查询设置类PointCoo

19、rdinates 查询、设置某点坐标TextObjectHeight / TextObjectPlane / TextObjectPoint / TextObjectText查询、设置某文字属性关系查询类Angle / Angle2 返回两点、线夹角Distance / DistanceToPlane 返回两点、点到平面距离IsVectorParallelTo 返回两个矢量是否平行IsVectorPerpendicularTo 返回两个矢量是否垂直PlaneClosestPoint 返回点在 Cplane 上的投影点PointsAreCoplanar 返回群点是否共平面PointCompare

20、 返回两点重合关系VectorCompare 返回两矢量重合关系PullPoints 返回沿法线方向拉至面上的点Mesh MethodsMeshFaces 逐面返回各点坐标MeshVertices 返回各顶点坐标MeshFaceVertices 返回各面其顶点的编号MeshTriangleCount / MeshQuadCount 返回面数Layer Methods创建类AddLayer 添加层编辑类PurgeLayer 除去非当前层及其对象RenameLayer 更名查询类IsLayer 返回某层是否存在LayerCount 返回文件中的层数LayerNames 返回文件中所有层名查询设置类

21、CurrentLayer 查询或设置当前层LayerColor 查询或设置层色LayerVisible 查询或设置层可见性View MethodsViewCPlane 查询并设置 CplaneZoomBoundingBox / ZoomExtents / ZoomSelected 缩放视图Group Methods创建类AddGroup / DeleteGroup / RenameGroup 创建、消除、更名组AddObjectsToGroup / AddObjectToGroup 添加组成员RemoveObjectFromAllGroups / RemoveObjectFromGroup /

22、 RemoveObjectsFromGroup减少组成员查询类GroupCount 返回文件中组数GroupNames 返回文件中组名IsGroup 返回某组名是否存在IsGroupEmpty 返回某组是否为空User Interface Methods通用类BrowseForFolder / OpenFileName / SaveFileName 返回一个文件定位CheckListBox / ComboListBox / ListBox / MultiListBox 返回列表选择结果PropertyListBox 返回对于列表的编辑EditBox 返回多行文本GetBoolean 返回布尔量

23、GetColor 返回颜色GetInteger / IntegerBox 返回整数GetReal / RealBox 返回实数GetString / StringBox 返回一字符串MessageBeep 返回一声响MessageBox 返回对于对话框的反应PopupMenu 返回对于弹出菜单的反应Rhino 类GetLayer 返回选择的层名GetLinetype 返回选择的线型几何类GetAngle 返回一个夹角GetBox 返回一个立方体积GetDistance 返回距离GetPoint / GetPoints 返回一点或多点GetPointOnCurve 返回某曲线上一点GetPoin

24、tOnMesh 返回某面体上一点GetPointOnSurface 返回某曲面上一点GetRectangle 返回一矩形Utility MethodsJoinArrays / Strtok 连接/分离一元数组Pt2Str / Str2Pt / Str2PtArray 转换坐标与字符串SimplifyArray 转换三维点数组为一维数组SortNumbers / SortPointList / SortPoints / SortStrings 一维数组、点集、字符串排序CullDuplicateNumbers / CullDuplicatePoints / CullDuplicateString

25、s消除元素间重复其它文档 VBscripthttp:/ / Polyline / Curve Surface / Polysurface / Solid / Brep / MeshDomain 似乎不是表面长度(曲线的值并非其长)-Evaluate (Derivatives) 不懂Rational (弧线+ 椭圆线,无法对点光滑编辑) / Not Rational(非弧线或椭圆线,可对点光滑编辑)Periodic / Non-Periodic 闭合曲线/ 面的始末交接是否有节 kinkIsocurve 似乎是曲面的 UV 轴线图元转换Rhino DXFLine linePolyline (平面内) Polyline (2d)Polyline (平面外) SplineCurve Spline

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报