This shows you the differences between two versions of the page.
|
ko:labs:panelingscripting [2015/09/14] |
ko:labs:panelingscripting [2020/08/14] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== PanelingScripting ====== | ||
| + | |||
| + | > **Summary: | ||
| + | \\ | ||
| + | |||
| + | {{: | ||
| + | =====Contents===== | ||
| + | |||
| + | * [[# | ||
| + | * [[#Methods Description]] | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | =====OVERVIEW===== | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | **[[labs: | ||
| + | |||
| + | Examples using all methods is attached to toolbar buttons. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | **Accessing methods: how to get **PanelingTools** plug-in object:** | ||
| + | |||
| + | First step is to get hold of // | ||
| + | |||
| + | \\ | ||
| + | |||
| + | The plugin object is accessed using **GetPluginObject(" | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **Rhino.GetPluginObject (strPlugIn)** | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | strPlugIn| String. | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Object| A scriptable object if successful | | ||
| + | | Null| If not successful, or on error | | ||
| + | \\ | ||
| + | |||
| + | [[labs: | ||
| + | |||
| + | {{: | ||
| + | \\ | ||
| + | |||
| + | In order to access **[[labs: | ||
| + | |||
| + | \\ | ||
| + | |||
| + | {{: | ||
| + | |||
| + | \\ | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | =====METHODS DESCRIPTION===== | ||
| + | \\ | ||
| + | |||
| + | =====Available Methods===== | ||
| + | |||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | |||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | \\ | ||
| + | |||
| + | Finds dividing points of a curve by distance or number. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.DivideCurveSpan( strObject, bMode, intNumber, doubleDis, bRound, bRoundMethod, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | strObject| String. | ||
| + | | bMode| Boolean. 0 = divide by number, 1 = divide by distance| | ||
| + | | intNumber| Integer. Number of divide points| | ||
| + | | doubleDis| Double. | ||
| + | | bRound| Boolean. Rounding to fit curve length| | ||
| + | | bRoundMethod| Boolean. true = round down. false = round up| | ||
| + | | bAdd| Boolean. | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array| Array of divide points| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Finds dividing points of a curve by distance on curve. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.DivideCurveByDistance( strObject, doubleDis, bRound, bRoundMethod, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | strObject| String. | ||
| + | | doubleDis| Double. | ||
| + | | bRound| Bool. Rounding to fit curve length| | ||
| + | | bRoundMethod| Bool. True = round down. False = round up| | ||
| + | | bAdd| Bool. Add dividing points to context| | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array| Array of divide points| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Finds dividing points of a curve by direct distance. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.DivideCurveByDirectDistance( strObject, doubleDis, bAddend, bAdd )** | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | strObject| String. | ||
| + | | doubleDis| Double. | ||
| + | | bAddEnd| Bool. Add end point on curve| | ||
| + | | bAdd| Bool. Add dividing points to context| | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array| Array of divide points| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Generates surface grid of points by number or distance following surface U & V directions. In case of dividing by distance, the defined distance is applied only on the first iso-curve in each direction. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.DivideSurfaceSpan( strSrfObject, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | strSrfObject| String. | ||
| + | | bUMode| Bool. Divide mode in U direction: False=By-Number, | ||
| + | | bVMode| Bool. Divide mode in V direction: | ||
| + | | intUNum| Integer. | ||
| + | | intVNum| Integer. | ||
| + | | doubleUDis| Double. | ||
| + | | doubleVDis| Double. | ||
| + | | bURound| Bool. Option to round result in U direction| | ||
| + | | bVRound| Bool. Option to round result in V direction| | ||
| + | | bURoundMethod| Bool. True = round down. False = round up| | ||
| + | | bVRoundMethod| Bool. True = round down. False = round up| | ||
| + | | bAdd| Bool. Add points to context| | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array of Arrays| Array of point-objects arrays (2 dimensional array of points)| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Generates surface grid of points by direct distance between points. This method is a bit fragile. Each new point is based on previously calculated points. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.DivideSurfaceByDirectDistance( strSrfObject, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | strSrfObject| String. | ||
| + | | doubleUDis| Double. | ||
| + | | doubleVDis| Double. | ||
| + | | bExtend| Bool. True = extend surface to possibly get better coverage| | ||
| + | | bAdd| Bool. Add points to context| | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array Of Arrays| Array of point-objects array (2 dimensional array of points)| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Paneling surface using seed polylines. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.SubPaneling( strSrfObject, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | strSrfObject| String. | ||
| + | | arrCrvObject| Array of Strings. | ||
| + | | intMethod| Integer. | ||
| + | | intDegree| Integer. | ||
| + | | bPull| Bool. Pull panels to surface or keep straight| | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array| Array of string of panel curves objects| | ||
| + | | Null| If not successful, or on error.| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Triangular paneling using random set of points on surface. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.RandomPaneling( strSrfObject, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | strSrfObject| String. | ||
| + | | intNumOfPoints| Integer. | ||
| + | | bPull| Bool. Pull panels to surface or keep straight| | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array| Array of string of panel curves objects| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Triangular paneling using random set of points on surface. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.RandomPanelingWithPoints( strSrfObject, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | strSrfObject| String. | ||
| + | | arrPoints| Array. | ||
| + | | bPull| Bool. Pull panels to surface or keep straight| | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array| Array of string of panel curves objects| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Creates edge panels from an ordered paneling grid of points. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.PanelEdgesWithOrderedPoints( arrPoints, intPattern, // | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | arrPoints| Array. | ||
| + | | intPattern| Integer between 0 and 7. ( 0=Box, 1=BoxX, 2=Triangular, | ||
| + | | strBrepObject| // | ||
| + | | bPull| // | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array| Array of string of curves objects (panels edges)| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Creates face panels (outline border) from an ordered paneling grid of points. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.PanelFacesWithOrderedPoints( arrPoints, intPattern, // | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | arrPoints | ||
| + | | intPattern| Integer between 0 and 7. ( 0=Box, 1=BoxX, 2=Triangular, | ||
| + | | strBrepObject| // | ||
| + | | bPull| // | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array| Array of string of curves objects (panels faces)| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Creates flat face panels (trimmed planar surfaces) from an ordered paneling grid of points. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.PanelFlatFacesWithOrderedPoints( arrPoints, intPattern, // | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | arrPoints| Array. Points to be paneled| | ||
| + | | intPattern| Integer between 0 and 7. ( 0=Box, 1=BoxX, 2=Triangular, | ||
| + | | strBrepObject| // | ||
| + | | intMetod| // | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array| Array of string of surface objects| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Creates a mesh from an ordered paneling grid of points. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.PanelMeshWithOrderedPoints( arrPoints, intPattern, // | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | arrPoints| Array. | ||
| + | | intPattern| Integer between 0 and 7. ( 0=Box, 1=BoxX, 2=Triangular, | ||
| + | | strBrepObject| // | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | String| Mesh object| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Creates a custom pattern from pattern curves and points and ordered paneling grid of points. Pattern can be either curves, points or both. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.PanelCustomWithOrderedPoints( arrPoints, arrPattern, intUSpacing, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | arrPoints| Array. | ||
| + | | arrPattern| Array. | ||
| + | | intUSpacing| Integer. | ||
| + | | intVSpacing| Integer. | ||
| + | | strBrepObject| // | ||
| + | | bPull| // | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array| Array of string of curve objects| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Create quads point grid within deviation. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.PanelQuadsWithOrderedPoints( arrPoints, doubleDeviation )** | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | arrPoints| Array. | ||
| + | | doubleDeviation| Double. | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array | Array of point-objects| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Create ordered grid of points by array. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.GridByArray( ptBase, intUNum, doubleUSpacing, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | ptBase| Array. | ||
| + | | intUNum| Integer. | ||
| + | | doubleUSpacing| Double. | ||
| + | | vectorVDir| Array. First direction| | ||
| + | | intVNum| Integer. | ||
| + | | doubleVSpacing| Double. | ||
| + | | vectorVDir| Array. Second direction| | ||
| + | | bGroup| Bool. Option to group result| | ||
| + | | strName | String. Grid name| | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array | Array of point-objects| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Create ordered grid of points by array polar. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.GridByArrayPolar( ptRotation, vectorRAxis, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | ptRotation| Array. | ||
| + | | vectorRAxis| Array. Rotation axis| | ||
| + | | ptBase| Array. | ||
| + | | vectorVDir| Array. Direction of points| | ||
| + | | intUNum| Integer. | ||
| + | | doubleUSpacing| Double. | ||
| + | | intVNum| Integer. | ||
| + | | doubleVAngle| Double. | ||
| + | | bGroup| Bool. Option to group result| | ||
| + | | strName | String. Grid name| | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array | Array of point-objects| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Create ordered grid of points using one directional curve. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.GridByOneDirectionCurve( strCrvObject, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | strCrvObject| String. | ||
| + | | intUMethod| Integer. | ||
| + | | intUNum| Integer. Number of divide points| | ||
| + | | doubleUDis| Double. | ||
| + | | bURound| Boolean. Rounding to fit curve length| | ||
| + | | bURoundMethod| Boolean. true = round down. false = round up| | ||
| + | | bUAddEnd| Boolean. | ||
| + | | intVMethod| Integer. | ||
| + | | intVNum| Integer. | ||
| + | | doubleVDis| Double. | ||
| + | | vectorVDir| Array. Second direction| | ||
| + | | bGroup| Bool. Option to group result| | ||
| + | | strName | String. Grid name| | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array | Array of point-objects| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Create ordered grid of points using two directional curves. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.GridByTwoDirectionCurves( arrstrCrvs, intUMethod, intUNum, doubleUDis, bURound, bURoundmethod, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | arrstrCrvs| Array of two Strings. | ||
| + | | intUMethod| Integer. | ||
| + | | intUNum| Integer. Number of divide points| | ||
| + | | doubleUDis| Double. | ||
| + | | bURound| Boolean. Rounding to fit curve length| | ||
| + | | bURoundMethod| Boolean. true = round down. false = round up| | ||
| + | | bUAddEnd| Boolean. | ||
| + | | intVMethod| Integer. | ||
| + | | intVNum| Integer. Number of divide points| | ||
| + | | doubleVDis| Double. | ||
| + | | bVRound| Boolean. Rounding to fit curve length| | ||
| + | | bVRoundMethod| Boolean. true = round down. false = round up| | ||
| + | | bVAddEnd| Boolean. | ||
| + | | bGroup| Bool. Option to group result| | ||
| + | | strName | String. Grid name| | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array | Array of point-objects| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Create ordered grid of points using array of curves. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.GridByUCurves( arrstrCrvs, intMethod, intNum, doubleDis, bRound, bRoundmethod, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | arrstrCrvs| Array of Strings. | ||
| + | | intMethod| Integer. | ||
| + | | intNum| Integer. Number of divide points| | ||
| + | | doubleDis| Double. | ||
| + | | bRound| Boolean. Rounding to fit curve length| | ||
| + | | bRoundMethod| Boolean. true = round down. false = round up| | ||
| + | | bAddEnd| Boolean. | ||
| + | | bGroup| Bool. Option to group result| | ||
| + | | strName | String. Grid name| | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array | Array of point-objects| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Create ordered grid of points using array of curves in two directions. Grid is made out of curves intersections. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.GridByUVCurves( arrstrCrvs0, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | arrstrCrvs| Array of Strings. | ||
| + | | arrstrCrvs| Array of Strings. | ||
| + | | bGroup| Bool. Option to group result| | ||
| + | | strName | String. Grid name| | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array | Array of point-objects| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Create ordered grid of points using base object and direction curve. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.GridByObjectDirection(strBrepObject, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | strBrepObject| String. | ||
| + | | strCrvObject| String. | ||
| + | | vectorProjDir| Array(x, | ||
| + | | vectorExtrudeDir| Array(x, | ||
| + | | intCutNum| Integer. Number of cuts| | ||
| + | | doubleCutDis| Double. | ||
| + | | intMethod| Integer. | ||
| + | | intNum| Integer. Number of divide points| | ||
| + | | doubleDis| Double. | ||
| + | | bRound| Boolean. Rounding to fit curve length| | ||
| + | | bRoundMethod| Boolean. true = round down. false = round up| | ||
| + | | bAddEnd| Boolean. | ||
| + | | bGroup| Bool. Option to group result| | ||
| + | | strName | String. Grid name| | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array | Array of point-objects| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Create ordered grid of points following input surface UV direction. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.GridBySurfaceUV( strSrfObject, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | strSrfObject| String. | ||
| + | | bUMode| Bool. Divide mode in U direction: False=By-Number, | ||
| + | | bVMode| Bool. Divide mode in V direction: | ||
| + | | intUNum| Integer. | ||
| + | | intVNum| Integer. | ||
| + | | doubleUDis| Double. | ||
| + | | doubleVDis| Double. | ||
| + | | bURound| Bool. Option to round result in U direction| | ||
| + | | bVRound| Bool. Option to round result in V direction| | ||
| + | | bURoundMethod| Bool. True = round down. False = round up| | ||
| + | | bVRoundMethod| Bool. True = round down. False = round up| | ||
| + | | bGroup| Bool. Option to group result| | ||
| + | | strName | String. Grid name| | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array | Array of point-objects| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Create ordered grid of points using input surface and distance bewteen points. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.GridByDirectDistanceOnSurface( strSrfObject, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | strSrfObject| String. | ||
| + | | doubleUDis| Double. | ||
| + | | doubleVDis| Double. | ||
| + | | bExtend| Bool. True = extend surface to possibly get better coverage| | ||
| + | | bGroup| Bool. Option to group result| | ||
| + | | strName | String. Grid name| | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array | Array of point-objects| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | This is useful for building custom grid of points. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.InsertPointInGrid( ptPoint, intRow, intCol, // | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | ptPoint| Array. | ||
| + | | intRow| Integer. | ||
| + | | intCol| Integer. | ||
| + | | strName | // | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | String| Point object| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Create a NURBS surface from a point grid. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.SurfaceByGrid( arrGrid grid )** | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | arrGrid| Array. | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | String| Surface object| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Create a NURBS surface from a grid of control points. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.SurfaceByControlGrid( arrGrid )** | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | arrGrid| Array. | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | String| Surface object| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Use a list of parameters to divide a curve. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.DivideCurveByVariableDistances( strCrvObj, arrParamList, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | strCrvObj| Curve object| | ||
| + | | arrParamList| Array. | ||
| + | | bAdd| Boolean. | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array| Array of divide points| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | |||
| + | | [[#Back to top]]| | ||
| + | |||
| + | ---- | ||
| + | {{: | ||
| + | Use a list of parameters n U and V directions to divide a surface. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | > **Syntax:** //// | ||
| + | **PTObj.DivideSurfaceByVariableDistances( strSrfObj, arrUParamList, | ||
| + | |||
| + | > **Parameters: | ||
| + | |||
| + | | strSrfObj| Surface object| | ||
| + | | arrUParamList| Array. | ||
| + | | arrVParamList| Array. | ||
| + | | bAdd| Boolean. | ||
| + | |||
| + | > **Returns: | ||
| + | |||
| + | | Array of Arrays| Array of point-objects arrays (2 dimensional array of points)| | ||
| + | | Null| If not successful, or on error| | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||