diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Arc.ByBestFitThroughPoints.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Arc.ByBestFitThroughPoints.md index 712ae48845f..1d3caabb912 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Arc.ByBestFitThroughPoints.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Arc.ByBestFitThroughPoints.md @@ -1,5 +1,8 @@ ## In Depth -Plane By Best Fit Through Points uses a set of points and finds the plane that best approximates the set. In the example, we use a series of RandomList components to generate random x,y and z coordinates. The points are created By Coordinates, and the list of points is then used as an input for ByBestFitThroughPoints. +`Arc.ByBestFitThroughPoints` draws an arc that best represents 3 or more points. + +In the example below, we create an arc that approximates a list of random points ranging from 0 to 5 in the X and Y directions. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Arc.ByThreePoints.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Arc.ByThreePoints.md index 294dbed067b..756575294b2 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Arc.ByThreePoints.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Arc.ByThreePoints.md @@ -1,5 +1,8 @@ ## In Depth -Plane by Three Points will create a plane that passes through the three input points. The points must not be co-linear. In the example below, we use three code blocks to define the three initial points, then use ByThreePoints to create a plane. +`Arc.ByThreePoints` draws an arc from three points, given the start point, end point, and a point between them. + +In the example below, we draw an arc from three randomly created points. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Arc.CenterPoint.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Arc.CenterPoint.md index 9ac00997759..698405dc5f0 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Arc.CenterPoint.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Arc.CenterPoint.md @@ -1,5 +1,8 @@ ## In Depth -Center Point will return the center of an input sphere. In the example below, we use a ByBestFit node to create a sphere based on a set of random points. We then use a CenterPoint node to determine the center of the best fit sphere. +`Arc.CenterPoint` returns a point at the center of an arc, the same point as the corresponding circle center. + +In the example below, we create an arc from 3 randomly generated points, then return its center point with an `Arc.CenterPoint` node. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Arc.Radius.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Arc.Radius.md index baac98d02f5..61a5ae38285 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Arc.Radius.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Arc.Radius.md @@ -1,5 +1,8 @@ ## In Depth -Radius will return the center of an input sphere. In the example below, we use a ByBestFit node to create a sphere based on a set of random points. We then use a Radius node to determine the size of the best fit sphere. +`Arc.Radius` returns the radius value of arc geometry. + +In the example below, we create an arc from 3 randomly generated points, then return its radius point with an `Arc.Radius` node. We can visualize the change in radius as the input points change in the Y direction. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.BoundingBox.ByCorners.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.BoundingBox.ByCorners.md index 1010232ce37..ce81b48664a 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.BoundingBox.ByCorners.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.BoundingBox.ByCorners.md @@ -1,5 +1,8 @@ ## In Depth -Cuboid By Corners creates a cuboid where the two input points are used as the opposite corners of the cuboid. In the example file, two points are randomly generated and used to create a cuboid. +`BoundingBox.ByCorners` creates a BoundingBox from two input points. + +In the example below, we use the diagonal vector to translate the start point of the box to create its end point. To visualize the box, it is converted to a PolySurface and its edge curves are extracted. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.BoundingBox.ByGeometry.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.BoundingBox.ByGeometry.md index e2d1711428b..ddf4833c2af 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.BoundingBox.ByGeometry.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.BoundingBox.ByGeometry.md @@ -1,5 +1,8 @@ ## In Depth -ByGeometry brings each input geometry into Revit as an individual Import Instance element. An Import Instance is identified as an Import Symbol in Revit. +`BoundingBox.ByGeometry` creates a BoundingBox around geometry. + +In the example below, a BoundingBox is created around a sphere. To visualize the box, it is converted to a cuboid and its edge curves are extracted. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.ByBestFitThroughPoints.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.ByBestFitThroughPoints.md index 59b8948bd16..a018b2ebd1b 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.ByBestFitThroughPoints.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.ByBestFitThroughPoints.md @@ -1,5 +1,8 @@ ## In Depth -Plane By Best Fit Through Points uses a set of points and finds the plane that best approximates the set. In the example, we use a series of RandomList components to generate random x,y and z coordinates. The points are created By Coordinates, and the list of points is then used as an input for ByBestFitThroughPoints. +`Circle.ByBestFitThroughPoints` receives point inputs and creates a best-fit circle through them. + +In the example below, a list of randomly generated points is used to generate a circle that best approximates them. We can dynamically increase and decrease the number of points with a number slider, altering the shape of the best-fit circle. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.ByCenterPointRadius.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.ByCenterPointRadius.md index d95240752fc..cab66404075 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.ByCenterPointRadius.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.ByCenterPointRadius.md @@ -1,5 +1,8 @@ ## In Depth -Sphere by Center Point Radius will create a sphere centered at the input point, and with an input radius. In the example below, we use a code block to specify the coordinates of a Point created by coordinates, and we use a number slider to determine the radius of the sphere. +`Circle.ByCenterPointRadius` creates a circle with the Z-plane normal. + +In the example below, we use a code block to create a point in three-dimensional space and locate the circle around the point. The radius is controlled dynamically with a number slider. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.ByThreePoints.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.ByThreePoints.md index cef9ebc47f5..2986b910f6c 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.ByThreePoints.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.ByThreePoints.md @@ -1,5 +1,8 @@ ## In Depth -Plane by Three Points will create a plane that passes through the three input points. The points must not be co-linear. In the example below, we use three code blocks to define the three initial points, then use ByThreePoints to create a plane. +`Circle.ByThreePoints` receives 3 point inputs and creates a circle that passes through each point. + +In the example below, we use 3 randomly generated points on the Z-plane to create a circle. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.CenterPoint.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.CenterPoint.md index 39e094f7656..ebe56829ec8 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.CenterPoint.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.CenterPoint.md @@ -1,5 +1,8 @@ ## In Depth -Center Point will return the center of an input sphere. In the example below, we use a ByBestFit node to create a sphere based on a set of random points. We then use a CenterPoint node to determine the center of the best fit sphere. +`Circle.CenterPoint` finds the center point of a given circle. + +In the example below, we create a circle using `Circle.BestFitThroughPoints` and then extract the center point of the circle. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.Radius.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.Radius.md index a3a3b475d01..581076de460 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.Radius.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Circle.Radius.md @@ -1,5 +1,8 @@ ## In Depth -Radius will return the center of an input sphere. In the example below, we use a ByBestFit node to create a sphere based on a set of random points. We then use a Radius node to determine the size of the best fit sphere. +`Circle.Radius` finds the radius of a given circle. + +In the example below, we create a circle using `Circle.ByBestFitThroughPoints` and then extract the radius of the circle. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.CoordinateSystem.ByOriginVectors(origin, xAxis, yAxis, zAxis).md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.CoordinateSystem.ByOriginVectors(origin, xAxis, yAxis, zAxis).md index f4f39db5318..36309cc701e 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.CoordinateSystem.ByOriginVectors(origin, xAxis, yAxis, zAxis).md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.CoordinateSystem.ByOriginVectors(origin, xAxis, yAxis, zAxis).md @@ -1,5 +1,8 @@ ## In Depth -Add in-depth information about ByOriginVectors (origin, xAxis, yAxis, zAxis)... +`CoordinateSystem.ByOriginVectors (origin, xAxis, yAxis, zAxis)` returns a new CoordinateSystem at an input origin point with input X, Y, and Z axes. + +In the example below, the CoordinateSystem is placed at an origin with new vectors for the X, Y, and Z axes. The result is a CoordinateSystem rotated relative to the original CoordinateSystem. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.CoordinateSystem.ByPlane.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.CoordinateSystem.ByPlane.md index b7ce9879e89..033cc67343c 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.CoordinateSystem.ByPlane.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.CoordinateSystem.ByPlane.md @@ -1,5 +1,8 @@ ## In Depth -Sketch planes are used in the creation of 2D and 3D geometry in Revit. +`CoordinateSystem.ByPlane` returns a new CoordinateSystem based on an input plane. + +In the example below, the normal of the input plane has been repositioned, resulting in a new CoordinateSystem rotated about the X axis. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.CoordinateSystem.Rotate(coordinateSystem, plane, degrees).dyn b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.CoordinateSystem.Rotate(coordinateSystem, plane, degrees).dyn new file mode 100644 index 00000000000..5175206f5ab --- /dev/null +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.CoordinateSystem.Rotate(coordinateSystem, plane, degrees).dyn @@ -0,0 +1,262 @@ +{ + "Uuid": "ac4af643-8e4a-4317-b683-dabd4e2674a7", + "IsCustomNode": false, + "Description": "", + "Name": "Autodesk.DesignScript.Geometry.CoordinateSystem.Rotate", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "d83f3cdf35c346bb955ffef4109381cc", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "fb7c4cefedb74442a23d6b054022b053", + "Name": "coordinateSystem", + "Description": "Autodesk.DesignScript.Geometry.CoordinateSystem", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "c8482db7b9654c5f8d1f7eb7e41e90ae", + "Name": "plane", + "Description": "Plane to get normal from\n\nPlane", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "254041246ba743ddb926e93567a5545c", + "Name": "degrees", + "Description": "Rotation value in degrees\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "deda1902488f4cf89653cc97ef74dc94", + "Name": "CoordinateSystem", + "Description": "Rotated coordinate system", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.CoordinateSystem.Rotate@Autodesk.DesignScript.Geometry.Plane,double", + "Replication": "Auto", + "Description": "Rotates an object around the origin and normal of the given Plane by a specified degree\n\nCoordinateSystem.Rotate (plane: Plane, degrees: double = 0): CoordinateSystem" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "8ad6a2c820ea4c33acd85d6c6b9f7e42", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "bf629aa243374e4fbe7dd36624786535", + "Name": "origin", + "Description": "Point\nDefault value : Autodesk.DesignScript.Geometry.Point.ByCoordinates(0, 0, 0)", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "90957b0754744e92b25fc46d261d6471", + "Name": "CoordinateSystem", + "Description": "CoordinateSystem", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.CoordinateSystem.ByOrigin@Autodesk.DesignScript.Geometry.Point", + "Replication": "Auto", + "Description": "Create a CoordinateSystem with origin at input Point, with X and Y Axes set as WCS X and Y Axes.\n\nCoordinateSystem.ByOrigin (origin: Point = Autodesk.DesignScript.Geometry.Point.ByCoordinates(0, 0, 0)): CoordinateSystem" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "600954f1336c496497b3d78c4274732e", + "NodeType": "FunctionNode", + "Inputs": [], + "Outputs": [ + { + "Id": "abcb37feac0b4b0e8696ed2271deacdb", + "Name": "Plane", + "Description": "Plane at YZ plane of world", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Plane.YZ", + "Replication": "Auto", + "Description": "Creates a plane in the world YZ\n\nPlane.YZ ( ): Plane" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "233a9182edf24a9cb0e04918b22d5ea1", + "NodeType": "CodeBlockNode", + "Inputs": [], + "Outputs": [ + { + "Id": "6902090b147b48e69ba4898d9684a3bb", + "Name": "", + "Description": "degrees", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "degrees = 135;" + } + ], + "Connectors": [ + { + "Start": "90957b0754744e92b25fc46d261d6471", + "End": "fb7c4cefedb74442a23d6b054022b053", + "Id": "f4d6e52809c14409bc0107db90964aea", + "IsHidden": "False" + }, + { + "Start": "abcb37feac0b4b0e8696ed2271deacdb", + "End": "c8482db7b9654c5f8d1f7eb7e41e90ae", + "Id": "b6b61eb9ca1647079e31f6c182bedc03", + "IsHidden": "False" + }, + { + "Start": "6902090b147b48e69ba4898d9684a3bb", + "End": "254041246ba743ddb926e93567a5545c", + "Id": "5da7c279d3d04bbf988fa8210a569aa1", + "IsHidden": "False" + } + ], + "Dependencies": [], + "NodeLibraryDependencies": [], + "Thumbnail": "", + "GraphDocumentationURL": null, + "ExtensionWorkspaceData": [ + { + "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", + "Name": "Properties", + "Version": "2.19", + "Data": {} + } + ], + "Author": "", + "Linting": { + "activeLinter": "None", + "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", + "warningCount": 0, + "errorCount": 0 + }, + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 100.0, + "HasRunWithoutCrash": true, + "IsVisibleInDynamoLibrary": true, + "Version": "2.19.0.5742", + "RunType": "Manual", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "_Background Preview", + "EyeX": 23.126308376732588, + "EyeY": 8.7204408155608029, + "EyeZ": 7.9356554294069479, + "LookX": -23.126308376732588, + "LookY": -8.7204408155608029, + "LookZ": -7.9356554294069479, + "UpX": -0.11936696618795395, + "UpY": 0.992004930973053, + "UpZ": -0.040960114449262619 + }, + "ConnectorPins": [], + "NodeViews": [ + { + "Id": "d83f3cdf35c346bb955ffef4109381cc", + "Name": "CoordinateSystem.Rotate", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 767.0533966533327, + "Y": 433.65461316390656 + }, + { + "Id": "8ad6a2c820ea4c33acd85d6c6b9f7e42", + "Name": "CoordinateSystem.ByOrigin", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 296.5, + "Y": 322.58625 + }, + { + "Id": "600954f1336c496497b3d78c4274732e", + "Name": "Plane.YZ", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 296.5, + "Y": 470.58625 + }, + { + "Id": "233a9182edf24a9cb0e04918b22d5ea1", + "Name": "Code Block", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 296.5, + "Y": 618.41374999999994 + } + ], + "Annotations": [ + { + "Id": "9fe06b88ed6b4cee9b66b0428de8c6f7", + "Title": "Coordinate System rotated around a base YZ plane set at the 0, 0, 0 insertion point by 135 degrees", + "DescriptionText": null, + "IsExpanded": true, + "WidthAdjustment": 0.0, + "HeightAdjustment": 0.0, + "Nodes": [], + "HasNestedGroups": false, + "Left": 789.85339665333277, + "Top": 368.85461316390666, + "Width": 0.0, + "Height": 0.0, + "FontSize": 36.0, + "GroupStyleId": "00000000-0000-0000-0000-000000000000", + "InitialTop": 0.0, + "InitialHeight": 0.0, + "TextblockHeight": 0.0, + "Background": "#FFC1D676", + "PinnedNode": "d83f3cdf35c346bb955ffef4109381cc" + } + ], + "X": -25.505249382378452, + "Y": -149.199263666317, + "Zoom": 0.85276592558149733 + } +} \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.CoordinateSystem.Rotate(coordinateSystem, plane, degrees).md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.CoordinateSystem.Rotate(coordinateSystem, plane, degrees).md new file mode 100644 index 00000000000..9345ec9b6bb --- /dev/null +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.CoordinateSystem.Rotate(coordinateSystem, plane, degrees).md @@ -0,0 +1,9 @@ +## In Depth +`CoordinateSystem.Rotate (coordinateSystem, plane, degrees)` returns a new CoordinateSystem rotated about a plane by the given number of degrees. + +In the example below, a coordinate system is rotated around a base YZ plane set at the 0, 0, 0 insertion point by 135 degrees. + +___ +## Example File + +![CoordinateSystem.Rotate(coordinateSystem, plane, degrees)](./Autodesk.DesignScript.Geometry.CoordinateSystem.Rotate(coordinateSystem,%20plane,%20degrees)_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.CoordinateSystem.Rotate(coordinateSystem, plane, degrees)_img.jpg b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.CoordinateSystem.Rotate(coordinateSystem, plane, degrees)_img.jpg new file mode 100644 index 00000000000..76fc2354f62 Binary files /dev/null and b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.CoordinateSystem.Rotate(coordinateSystem, plane, degrees)_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction).dyn b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction).dyn new file mode 100644 index 00000000000..3188d1e554a --- /dev/null +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction).dyn @@ -0,0 +1,697 @@ +{ + "Uuid": "13ee3969-93ac-403d-9b3e-81b375ad025e", + "IsCustomNode": false, + "Description": "", + "Name": "Autodesk.DesignScript.Geometry.Curve.Extrude", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "de0ae7da0ebe4f2e84d1e722593dac58", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "b653ba86d58a4ac486c72be782a2a38c", + "Name": "x", + "Description": "X coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "777b8c9a8d6d48aa8bbbda01d2313335", + "Name": "y", + "Description": "Y coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "8359aaa8941c4748857a0aedf707091d", + "Name": "z", + "Description": "Z coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "4eddf3e2f0874f2885f39dabdb9040be", + "Name": "Vector", + "Description": "Vector created by coordinates", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Vector.ByCoordinates@double,double,double", + "Replication": "Auto", + "Description": "Form a Vector by 3 Euclidean coordinates\n\nVector.ByCoordinates (x: double = 0, y: double = 0, z: double = 0): Vector" + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleInput, CoreNodeModels", + "NumberType": "Double", + "Id": "dbc6329eeca3488188c210d16065943a", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "efc890cd12d24e859c796601edd0b4aa", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Creates a number", + "InputValue": 5.0 + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "a656702ce89044ba94622b0f49ca51cc", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "3eff3d4e226240b19128201f449249ac", + "Name": "x", + "Description": "X coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "39132e8b636e4795b228802f41c3b83c", + "Name": "y", + "Description": "Y coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "063e7b7219294e61940acadd766e60cf", + "Name": "z", + "Description": "Z coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "510847d19ff7467aa4e2a11a5df448e8", + "Name": "Point", + "Description": "Point created by coordinates", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Point.ByCoordinates@double,double,double", + "Replication": "Auto", + "Description": "Form a Point given 3 cartesian coordinates\n\nPoint.ByCoordinates (x: double = 0, y: double = 0, z: double = 0): Point" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "187e9a0c104f43de8d0a297a189a0c0e", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "1332627a80264ddf87b3c1142a05ceee", + "Name": "points", + "Description": "Points for nurbs curve\n\nPoint[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "e2b114ab8a5b45e0bebd4defc2b58efa", + "Name": "NurbsCurve", + "Description": "Nurbscurve created from points", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.NurbsCurve.ByControlPoints@Autodesk.DesignScript.Geometry.Point[]", + "Replication": "Auto", + "Description": "Create a BSplineCurve by using explicit control points. NOTE 1: BSplineCurves with deg=1 have G1 discontinuities, which cause problems for extrusion, sweep, and other operations. They should be avoided. Use a PolyCurve instead. NOTE 2: If the curve is periodic (closed), then the first and last points MUST be the same.\n\nNurbsCurve.ByControlPoints (points: Point[]): NurbsCurve" + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleInput, CoreNodeModels", + "NumberType": "Double", + "Id": "ad2f464ca237444180fd0ae89e4fcf85", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "55e7ef828c6a482685ec056e646d1a0e", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Creates a number", + "InputValue": 5.0 + }, + { + "ConcreteType": "CoreNodeModels.CreateList, CoreNodeModels", + "VariableInputPorts": true, + "Id": "1f1a533a5e0c48da969b56e1c484276a", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "d1e5f0d9f433489f96e79d1033593054", + "Name": "item0", + "Description": "Item Index #0", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "50c9fba9ffa542cd9155742d2e88e8f2", + "Name": "item1", + "Description": "Item Index #1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "173c5c3a7df34a4893b69fd6648daffb", + "Name": "item2", + "Description": "Item Index #2", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "dcb0c402b01a4061a67dbde996a7b1dd", + "Name": "item3", + "Description": "Item Index #3", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "2147e19547b44307b1d908d92f399a9a", + "Name": "list", + "Description": "A list (type: var[]..[])", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Makes a new list from the given inputs" + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleInput, CoreNodeModels", + "NumberType": "Double", + "Id": "3385557dd4674357a32874515143fc38", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "e6ee27120f0c491eb6c7b0c9808a128e", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Creates a number", + "InputValue": 10.0 + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleInput, CoreNodeModels", + "NumberType": "Double", + "Id": "a3e63cf989d34553b4e991bc10343699", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "ba321273c88348c495ed66ec59a0b375", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Creates a number", + "InputValue": 15.0 + }, + { + "ConcreteType": "CoreNodeModels.CreateList, CoreNodeModels", + "VariableInputPorts": true, + "Id": "600ee636bef6499aa907ba8f88618812", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "1e0709a194e2453a88bfb974b276b67e", + "Name": "item0", + "Description": "Item Index #0", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "a73dd5f811e949b7b29b5159b6dc1be0", + "Name": "item1", + "Description": "Item Index #1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "97fd765e333f483790fb5a0254f75e07", + "Name": "item2", + "Description": "Item Index #2", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "fa796d987e464181a11206900e22cc94", + "Name": "item3", + "Description": "Item Index #3", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "6eba145469ab455099299405b43c5bb2", + "Name": "list", + "Description": "A list (type: var[]..[])", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Makes a new list from the given inputs" + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleInput, CoreNodeModels", + "NumberType": "Double", + "Id": "90886ac3f6f24e29be7c4f75338aaade", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "42544b1bf25d4eebaeff4e419b63f36f", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Creates a number", + "InputValue": 20.0 + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "87d0e65d3c0e4a069b1bafe1efc96b66", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "747981ccb59f4e11bb0e147cc2692c3f", + "Name": "curve", + "Description": "Autodesk.DesignScript.Geometry.Curve", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "d1b79951513446f8bda4a9aaf75e464b", + "Name": "direction", + "Description": "Vector to extrude along\n\nVector\nDefault value : Autodesk.DesignScript.Geometry.Vector.ByCoordinates(0, 0, 1)", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "88f49b59f1794859a1e3bf109a95dea8", + "Name": "Surface", + "Description": "The extruded Surface", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Curve.Extrude@Autodesk.DesignScript.Geometry.Vector", + "Replication": "Auto", + "Description": "Extrudes a Curve in the specified direction, by the length of the input Vector\n\nCurve.Extrude (direction: Vector = Autodesk.DesignScript.Geometry.Vector.ByCoordinates(0, 0, 1)): Surface" + }, + { + "ConcreteType": "Watch3DNodeModels.Watch3D, Watch3DNodeModels", + "WatchWidth": 200.0, + "WatchHeight": 200.0, + "WasExecuted": true, + "Camera": { + "Name": "45f2c323-35f3-4590-ada0-76c3a6f0d784 Preview", + "EyeX": -17.0, + "EyeY": 24.0, + "EyeZ": 50.0, + "LookX": 12.0, + "LookY": -13.0, + "LookZ": -58.0, + "UpX": 0.0, + "UpY": 1.0, + "UpZ": 0.0 + }, + "VariableInputPorts": true, + "Id": "45f2c32335f34590ada076c3a6f0d784", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "6b2e23deec964a34b68af22102baabe9", + "Name": "", + "Description": "Incoming geometry objects.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "e6bcb8bee8a7475b9210aa55cbef3583", + "Name": "", + "Description": "Incoming geometry objects.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Shows a dynamic preview of geometry" + } + ], + "Connectors": [ + { + "Start": "4eddf3e2f0874f2885f39dabdb9040be", + "End": "d1b79951513446f8bda4a9aaf75e464b", + "Id": "4b6e8477aced42a5aad259dc6f836cf5", + "IsHidden": "False" + }, + { + "Start": "efc890cd12d24e859c796601edd0b4aa", + "End": "8359aaa8941c4748857a0aedf707091d", + "Id": "184c9af6c3134f8097f2640d4a336a04", + "IsHidden": "False" + }, + { + "Start": "510847d19ff7467aa4e2a11a5df448e8", + "End": "1332627a80264ddf87b3c1142a05ceee", + "Id": "929b99c06b6a4efdbcf3013393f25f5d", + "IsHidden": "False" + }, + { + "Start": "e2b114ab8a5b45e0bebd4defc2b58efa", + "End": "747981ccb59f4e11bb0e147cc2692c3f", + "Id": "601cdf95765b453282740b5ac3d39359", + "IsHidden": "False" + }, + { + "Start": "55e7ef828c6a482685ec056e646d1a0e", + "End": "d1e5f0d9f433489f96e79d1033593054", + "Id": "9cb0b4ee6348455eb7cc5c7ec489dd22", + "IsHidden": "False" + }, + { + "Start": "55e7ef828c6a482685ec056e646d1a0e", + "End": "a73dd5f811e949b7b29b5159b6dc1be0", + "Id": "1ce89045745c4b42b9750094899235f6", + "IsHidden": "False" + }, + { + "Start": "2147e19547b44307b1d908d92f399a9a", + "End": "3eff3d4e226240b19128201f449249ac", + "Id": "19c5e394afcb44eaa12d5325e15b4f5a", + "IsHidden": "False" + }, + { + "Start": "e6ee27120f0c491eb6c7b0c9808a128e", + "End": "50c9fba9ffa542cd9155742d2e88e8f2", + "Id": "cb164a4be8bd44a8baf788210334ce9f", + "IsHidden": "False" + }, + { + "Start": "e6ee27120f0c491eb6c7b0c9808a128e", + "End": "97fd765e333f483790fb5a0254f75e07", + "Id": "426a886d1c6a48b48c19d5ad0f3e85f5", + "IsHidden": "False" + }, + { + "Start": "ba321273c88348c495ed66ec59a0b375", + "End": "173c5c3a7df34a4893b69fd6648daffb", + "Id": "5992784325dd432ba69029585d2606c7", + "IsHidden": "False" + }, + { + "Start": "ba321273c88348c495ed66ec59a0b375", + "End": "fa796d987e464181a11206900e22cc94", + "Id": "32eaa046b09e41899bf086d1e62e86f4", + "IsHidden": "False" + }, + { + "Start": "6eba145469ab455099299405b43c5bb2", + "End": "39132e8b636e4795b228802f41c3b83c", + "Id": "c21342f615ca4f45bae11957fb6cd15c", + "IsHidden": "False" + }, + { + "Start": "42544b1bf25d4eebaeff4e419b63f36f", + "End": "dcb0c402b01a4061a67dbde996a7b1dd", + "Id": "0dea2e79fb01473f8c61c60a80d981aa", + "IsHidden": "False" + }, + { + "Start": "42544b1bf25d4eebaeff4e419b63f36f", + "End": "1e0709a194e2453a88bfb974b276b67e", + "Id": "e4322ae89fd34d69bb8a87cc06c634a0", + "IsHidden": "False" + } + ], + "Dependencies": [], + "NodeLibraryDependencies": [], + "Thumbnail": "", + "GraphDocumentationURL": null, + "ExtensionWorkspaceData": [ + { + "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", + "Name": "Properties", + "Version": "3.0", + "Data": {} + } + ], + "Author": "", + "Linting": { + "activeLinter": "None", + "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", + "warningCount": 0, + "errorCount": 0 + }, + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 1.0, + "HasRunWithoutCrash": true, + "IsVisibleInDynamoLibrary": true, + "Version": "2.19.0.5874", + "RunType": "Manual", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "_Background Preview", + "EyeX": -17.718215942382813, + "EyeY": 22.505508422851563, + "EyeZ": 19.34986686706543, + "LookX": 12.718215942382813, + "LookY": -11.505508422851563, + "LookZ": -27.34986686706543, + "UpX": 0.062325332313776016, + "UpY": 0.98901587724685669, + "UpZ": -0.13402673602104187 + }, + "ConnectorPins": [], + "NodeViews": [ + { + "Id": "de0ae7da0ebe4f2e84d1e722593dac58", + "Name": "Vector.ByCoordinates", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 816.05897626112755, + "Y": 361.37982195845689 + }, + { + "Id": "dbc6329eeca3488188c210d16065943a", + "Name": "Number", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 491.55897626112755, + "Y": 429.37982195845689 + }, + { + "Id": "a656702ce89044ba94622b0f49ca51cc", + "Name": "Point.ByCoordinates", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 491.55897626112755, + "Y": 213.37982195845692 + }, + { + "Id": "187e9a0c104f43de8d0a297a189a0c0e", + "Name": "NurbsCurve.ByControlPoints", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 816.05897626112755, + "Y": 213.37982195845689 + }, + { + "Id": "ad2f464ca237444180fd0ae89e4fcf85", + "Name": "Number", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": -0.94102373887244539, + "Y": 60.379821958456887 + }, + { + "Id": "1f1a533a5e0c48da969b56e1c484276a", + "Name": "List Create", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 231.55897626112755, + "Y": 106.37982195845689 + }, + { + "Id": "3385557dd4674357a32874515143fc38", + "Name": "Number", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": -0.94102373887244539, + "Y": 354.37982195845694 + }, + { + "Id": "a3e63cf989d34553b4e991bc10343699", + "Name": "Number", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": -0.94102373887244539, + "Y": 503.37982195845689 + }, + { + "Id": "600ee636bef6499aa907ba8f88618812", + "Name": "List Create", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 231.55897626112755, + "Y": 354.37982195845689 + }, + { + "Id": "90886ac3f6f24e29be7c4f75338aaade", + "Name": "Number", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": -0.94102373887244539, + "Y": 207.37982195845692 + }, + { + "Id": "87d0e65d3c0e4a069b1bafe1efc96b66", + "Name": "Curve.Extrude", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 1255.2848664688427, + "Y": 215.36943620178042 + }, + { + "Id": "45f2c32335f34590ada076c3a6f0d784", + "Name": "Watch 3D", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 1869.5281899109793, + "Y": 539.40504451038578 + } + ], + "Annotations": [], + "X": 269.79386977689933, + "Y": 162.03399077731513, + "Zoom": 0.57937399427177749 + } +} \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction).md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction).md new file mode 100644 index 00000000000..def841db649 --- /dev/null +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction).md @@ -0,0 +1,8 @@ +## In Depth +`Curve.Extrude (curve, direction)` extrudes an input curve using an input vector to determine the direction of the extrusion. The length of the vector is used for the extrusion distance. + +In the example below, we first create a NurbsCurve using a `NurbsCurve.ByControlPoints` node, with a set of randomly generated points as the input. A code block is used to specify the X, Y, and Z components of a `Vector.ByCoordinates` node. This vector is then used as the `direction` input in a `Curve.Extrude` node. +___ +## Example File + +![Curve.Extrude(curve, direction)](./Autodesk.DesignScript.Geometry.Curve.Extrude(curve,%20direction)_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction)_img.jpg b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction)_img.jpg new file mode 100644 index 00000000000..f5c9e2a21f0 Binary files /dev/null and b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction)_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction, distance).dyn b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction, distance).dyn new file mode 100644 index 00000000000..15b471eac39 --- /dev/null +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction, distance).dyn @@ -0,0 +1,623 @@ +{ + "Uuid": "28c43575-a578-4830-ad47-96bba177152d", + "IsCustomNode": false, + "Description": "", + "Name": "Autodesk.DesignScript.Geometry.Curve.Extrude", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "CoreNodeModels.Input.DoubleInput, CoreNodeModels", + "NumberType": "Double", + "Id": "774a899f07ef4aefbb678d99911818cb", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "3221298c289945ad8cac9888700c8639", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Creates a number", + "InputValue": 5.0 + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "e1125e894085469c8f3a26e50446f605", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "650e1051a10c4387a9db080925555d51", + "Name": "x", + "Description": "X coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "ccd63de4d01e47e8b4683d5bf5f0f420", + "Name": "y", + "Description": "Y coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "3d911bbbd10a48d08c76806d7556e113", + "Name": "z", + "Description": "Z coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "8dcb858f3393489297c245f99b8e2436", + "Name": "Point", + "Description": "Point created by coordinates", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Point.ByCoordinates@double,double,double", + "Replication": "Auto", + "Description": "Form a Point given 3 cartesian coordinates\n\nPoint.ByCoordinates (x: double = 0, y: double = 0, z: double = 0): Point" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "d422e3a717a948568a253d0e3c7d735b", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "070f3b8de56946feba02e3f43bc020c1", + "Name": "points", + "Description": "Points for nurbs curve\n\nPoint[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "7c3ef04e314a44c1878ca3428833c959", + "Name": "NurbsCurve", + "Description": "Nurbscurve created from points", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.NurbsCurve.ByControlPoints@Autodesk.DesignScript.Geometry.Point[]", + "Replication": "Auto", + "Description": "Create a BSplineCurve by using explicit control points. NOTE 1: BSplineCurves with deg=1 have G1 discontinuities, which cause problems for extrusion, sweep, and other operations. They should be avoided. Use a PolyCurve instead. NOTE 2: If the curve is periodic (closed), then the first and last points MUST be the same.\n\nNurbsCurve.ByControlPoints (points: Point[]): NurbsCurve" + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleInput, CoreNodeModels", + "NumberType": "Double", + "Id": "bbf2f09268a64c9d862369aff1e849c1", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "4d002a602637408cb3e4bc37434476eb", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Creates a number", + "InputValue": 5.0 + }, + { + "ConcreteType": "CoreNodeModels.CreateList, CoreNodeModels", + "VariableInputPorts": true, + "Id": "39530b19dca343f28812120ad044f8a8", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "6cf2fda0d55d4d4eac34c750c041c325", + "Name": "item0", + "Description": "Item Index #0", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "9d3b49669f4c4e8b949675683e3c7120", + "Name": "item1", + "Description": "Item Index #1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "fd36df71d60d4bfe871e4ed4fae9d225", + "Name": "item2", + "Description": "Item Index #2", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "44d5cf4320e54778b5e95ebe626456d0", + "Name": "item3", + "Description": "Item Index #3", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "b2f09c67d32740098a080183f591f871", + "Name": "list", + "Description": "A list (type: var[]..[])", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Makes a new list from the given inputs" + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleInput, CoreNodeModels", + "NumberType": "Double", + "Id": "ceb77e36710c4b50af5fcb5a8eff43e6", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "bb694775b82045d3a55666a22ba25c48", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Creates a number", + "InputValue": 10.0 + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleInput, CoreNodeModels", + "NumberType": "Double", + "Id": "ddbed6a570c44361aaa29b611fdd9e43", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "93c6c67d6e344fa886536f9e6b2e0aff", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Creates a number", + "InputValue": 15.0 + }, + { + "ConcreteType": "CoreNodeModels.CreateList, CoreNodeModels", + "VariableInputPorts": true, + "Id": "0e7bf8a00a044775a9e0b6b4339413dc", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "64e193e0ef2348c6810f619267ca752f", + "Name": "item0", + "Description": "Item Index #0", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "ddc4c83fc78146de919cbccccb74c73f", + "Name": "item1", + "Description": "Item Index #1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "1c2d3d5a71934bb6805aa9284c1e48a4", + "Name": "item2", + "Description": "Item Index #2", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "5db07c7ba44c40dfb4110b1f2c588fdd", + "Name": "item3", + "Description": "Item Index #3", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "d5cf0939e029467ab2ab4d1a6b41fee7", + "Name": "list", + "Description": "A list (type: var[]..[])", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Makes a new list from the given inputs" + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleInput, CoreNodeModels", + "NumberType": "Double", + "Id": "06a171262db840acb6d6cef745210c7a", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "a311838bc3434db5ba9306c02462a8ab", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Creates a number", + "InputValue": 20.0 + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "7f48aa6381de4526b803d4f6e4ed0400", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "a8871ad67d08434d8fbe0be1e9ceeff3", + "Name": "curve", + "Description": "Autodesk.DesignScript.Geometry.Curve", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "04ba61743d504bc3893f312399c7fef7", + "Name": "direction", + "Description": "Vector to extrude along\n\nVector\nDefault value : Autodesk.DesignScript.Geometry.Vector.ByCoordinates(0, 0, 1)", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "a4d1748f7ea24c4a91a9427576d8cae2", + "Name": "distance", + "Description": "Distance to extrude\n\ndouble\nDefault value : 1", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "54092b2e9d754927b362d40d6e548dc8", + "Name": "Surface", + "Description": "The extruded Surface", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Curve.Extrude@Autodesk.DesignScript.Geometry.Vector,double", + "Replication": "Auto", + "Description": "Extrudes a Curve in the specified direction, by the specified distance\n\nCurve.Extrude (direction: Vector = Autodesk.DesignScript.Geometry.Vector.ByCoordinates(0, 0, 1), distance: double = 1): Surface" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "4dea0161edac45798c82743cf8b11267", + "NodeType": "FunctionNode", + "Inputs": [], + "Outputs": [ + { + "Id": "fc65b203e1f34add9a584909fcd8d0d5", + "Name": "Vector", + "Description": "Vector", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Vector.ZAxis", + "Replication": "Auto", + "Description": "Get the canonical Z axis Vector (0,0,1)\n\nVector.ZAxis ( ): Vector" + } + ], + "Connectors": [ + { + "Start": "3221298c289945ad8cac9888700c8639", + "End": "a4d1748f7ea24c4a91a9427576d8cae2", + "Id": "2f764b4dc20c4eb08daee1f51e23ce80", + "IsHidden": "False" + }, + { + "Start": "8dcb858f3393489297c245f99b8e2436", + "End": "070f3b8de56946feba02e3f43bc020c1", + "Id": "e45d1146f47d44f5baa6253e80508282", + "IsHidden": "False" + }, + { + "Start": "7c3ef04e314a44c1878ca3428833c959", + "End": "a8871ad67d08434d8fbe0be1e9ceeff3", + "Id": "974952789aac427792836f209f575bef", + "IsHidden": "False" + }, + { + "Start": "4d002a602637408cb3e4bc37434476eb", + "End": "6cf2fda0d55d4d4eac34c750c041c325", + "Id": "6ada976ea165445ebfe4cdbb48d27439", + "IsHidden": "False" + }, + { + "Start": "4d002a602637408cb3e4bc37434476eb", + "End": "ddc4c83fc78146de919cbccccb74c73f", + "Id": "042e386fe1d8426cacbfd20b43f2c75d", + "IsHidden": "False" + }, + { + "Start": "b2f09c67d32740098a080183f591f871", + "End": "650e1051a10c4387a9db080925555d51", + "Id": "108bc94cacc545a98dea795425579e34", + "IsHidden": "False" + }, + { + "Start": "bb694775b82045d3a55666a22ba25c48", + "End": "9d3b49669f4c4e8b949675683e3c7120", + "Id": "5b3049bbf2c94bd58aaa1b08f038eed4", + "IsHidden": "False" + }, + { + "Start": "bb694775b82045d3a55666a22ba25c48", + "End": "1c2d3d5a71934bb6805aa9284c1e48a4", + "Id": "b7926835c3ee49ae8bad8592a31f1264", + "IsHidden": "False" + }, + { + "Start": "93c6c67d6e344fa886536f9e6b2e0aff", + "End": "fd36df71d60d4bfe871e4ed4fae9d225", + "Id": "28ccd473bb504fa8958319db8a415358", + "IsHidden": "False" + }, + { + "Start": "93c6c67d6e344fa886536f9e6b2e0aff", + "End": "5db07c7ba44c40dfb4110b1f2c588fdd", + "Id": "6e1828880f714ea69d3b831058928f21", + "IsHidden": "False" + }, + { + "Start": "d5cf0939e029467ab2ab4d1a6b41fee7", + "End": "ccd63de4d01e47e8b4683d5bf5f0f420", + "Id": "bebca5ad1aea4313a237f1a271c50aad", + "IsHidden": "False" + }, + { + "Start": "a311838bc3434db5ba9306c02462a8ab", + "End": "44d5cf4320e54778b5e95ebe626456d0", + "Id": "73215385dd6d41ca9cd8e6f1201d1e26", + "IsHidden": "False" + }, + { + "Start": "a311838bc3434db5ba9306c02462a8ab", + "End": "64e193e0ef2348c6810f619267ca752f", + "Id": "b77b54693ada457e8ea14df0d4f7953b", + "IsHidden": "False" + }, + { + "Start": "fc65b203e1f34add9a584909fcd8d0d5", + "End": "04ba61743d504bc3893f312399c7fef7", + "Id": "42eee64fc6334a94920db0ec7b73287d", + "IsHidden": "False" + } + ], + "Dependencies": [], + "NodeLibraryDependencies": [], + "Thumbnail": "", + "GraphDocumentationURL": null, + "ExtensionWorkspaceData": [ + { + "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", + "Name": "Properties", + "Version": "3.0", + "Data": {} + } + ], + "Author": "", + "Linting": { + "activeLinter": "None", + "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", + "warningCount": 0, + "errorCount": 0 + }, + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 1.0, + "HasRunWithoutCrash": true, + "IsVisibleInDynamoLibrary": true, + "Version": "2.19.0.5874", + "RunType": "Manual", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "_Background Preview", + "EyeX": -17.718215942382813, + "EyeY": 22.505508422851563, + "EyeZ": 19.34986686706543, + "LookX": 12.718215942382813, + "LookY": -11.505508422851563, + "LookZ": -27.34986686706543, + "UpX": 0.062325332313776016, + "UpY": 0.98901587724685669, + "UpZ": -0.13402673602104187 + }, + "ConnectorPins": [], + "NodeViews": [ + { + "Id": "774a899f07ef4aefbb678d99911818cb", + "Name": "Number", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 980.10116839762622, + "Y": 550.03783382789322 + }, + { + "Id": "e1125e894085469c8f3a26e50446f605", + "Name": "Point.ByCoordinates", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 655.60116839762622, + "Y": 256.03783382789322 + }, + { + "Id": "d422e3a717a948568a253d0e3c7d735b", + "Name": "NurbsCurve.ByControlPoints", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 980.10116839762622, + "Y": 256.03783382789322 + }, + { + "Id": "bbf2f09268a64c9d862369aff1e849c1", + "Name": "Number", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 163.10116839762622, + "Y": 103.03783382789322 + }, + { + "Id": "39530b19dca343f28812120ad044f8a8", + "Name": "List Create", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 395.60116839762622, + "Y": 149.03783382789319 + }, + { + "Id": "ceb77e36710c4b50af5fcb5a8eff43e6", + "Name": "Number", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 163.10116839762622, + "Y": 250.03783382789322 + }, + { + "Id": "ddbed6a570c44361aaa29b611fdd9e43", + "Name": "Number", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 163.10116839762622, + "Y": 545.03783382789334 + }, + { + "Id": "0e7bf8a00a044775a9e0b6b4339413dc", + "Name": "List Create", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 395.60116839762622, + "Y": 397.03783382789322 + }, + { + "Id": "06a171262db840acb6d6cef745210c7a", + "Name": "Number", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 163.10116839762622, + "Y": 398.03783382789322 + }, + { + "Id": "7f48aa6381de4526b803d4f6e4ed0400", + "Name": "Curve.Extrude", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 1365.6011683976262, + "Y": 369.03783382789322 + }, + { + "Id": "4dea0161edac45798c82743cf8b11267", + "Name": "Vector.ZAxis", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 980.10116839762622, + "Y": 403.03783382789322 + } + ], + "Annotations": [], + "X": -54.486267154012694, + "Y": -60.487132490180585, + "Zoom": 0.76582939285155194 + } +} \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction, distance).md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction, distance).md new file mode 100644 index 00000000000..4ac0c2828e7 --- /dev/null +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction, distance).md @@ -0,0 +1,8 @@ +## In Depth +`Curve.Extrude (curve, direction, distance)` extrudes an input curve using an input vector to determine the direction of the extrusion. A separate `distance` input is used for the extrusion distance. + +In the example below, we first create a NurbsCurve using a `NurbsCurve.ByControlPoints` node, with a set of randomly generated points as the input. A code block is used to specify the X, Y, and Z components of a `Vector.ByCoordinates` node. This vector is then used as the direction input in an `Curve.Extrude` node while a `number slider` is used to control the `distance` input. +___ +## Example File + +![Curve.Extrude(curve, direction, distance)](./Autodesk.DesignScript.Geometry.Curve.Extrude(curve,%20direction,%20distance)_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction, distance)_img.jpg b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction, distance)_img.jpg new file mode 100644 index 00000000000..fe6eb98d751 Binary files /dev/null and b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, direction, distance)_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, distance).dyn b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, distance).dyn new file mode 100644 index 00000000000..8e1571f520a --- /dev/null +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, distance).dyn @@ -0,0 +1,578 @@ +{ + "Uuid": "ca215674-7c3d-44ca-adbe-b65991b66b19", + "IsCustomNode": false, + "Description": "", + "Name": "Autodesk.DesignScript.Geometry.Curve.Extrude", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "CoreNodeModels.Input.DoubleInput, CoreNodeModels", + "NumberType": "Double", + "Id": "7d113d23afb54822bd422381dabab849", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "a893068488684662b5ee7af26bae9c42", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Creates a number", + "InputValue": 5.0 + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "10ecc4a2ae844daf9e4303966ec718c9", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "f128f6db21f44ea8b52516dfd2929334", + "Name": "x", + "Description": "X coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "529d233f94394935b4e335951defb4ed", + "Name": "y", + "Description": "Y coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "1d714bedb7844fdfad3d115163adb8e1", + "Name": "z", + "Description": "Z coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "3d9ca9356a624be283b1d96a746a0a07", + "Name": "Point", + "Description": "Point created by coordinates", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Point.ByCoordinates@double,double,double", + "Replication": "Auto", + "Description": "Form a Point given 3 cartesian coordinates\n\nPoint.ByCoordinates (x: double = 0, y: double = 0, z: double = 0): Point" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "2833e80082f94259899f7a7323830c4b", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "ad4b24a5de574948817ef8239b87068c", + "Name": "points", + "Description": "Points for nurbs curve\n\nPoint[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "7893aa81515b4894a28e2217a884a824", + "Name": "NurbsCurve", + "Description": "Nurbscurve created from points", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.NurbsCurve.ByControlPoints@Autodesk.DesignScript.Geometry.Point[]", + "Replication": "Auto", + "Description": "Create a BSplineCurve by using explicit control points. NOTE 1: BSplineCurves with deg=1 have G1 discontinuities, which cause problems for extrusion, sweep, and other operations. They should be avoided. Use a PolyCurve instead. NOTE 2: If the curve is periodic (closed), then the first and last points MUST be the same.\n\nNurbsCurve.ByControlPoints (points: Point[]): NurbsCurve" + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleInput, CoreNodeModels", + "NumberType": "Double", + "Id": "af67f81ad6b341808aef32162ae19ef8", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "b5a44e42f15d48ff928c1ad066aa84f0", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Creates a number", + "InputValue": 5.0 + }, + { + "ConcreteType": "CoreNodeModels.CreateList, CoreNodeModels", + "VariableInputPorts": true, + "Id": "ef993fef7c464f45911f301c9d37d17b", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "da2478f8414847cbaa64e7ada1f96310", + "Name": "item0", + "Description": "Item Index #0", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "3fb9ae71f183403d941df3a48bafb44b", + "Name": "item1", + "Description": "Item Index #1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "82ae98cc99164538bef97349c862f452", + "Name": "item2", + "Description": "Item Index #2", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "ed1e0da9cd9b4db6858656fa280606fd", + "Name": "item3", + "Description": "Item Index #3", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "bcecbeb50ddb4b158145386dd388e635", + "Name": "list", + "Description": "A list (type: var[]..[])", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Makes a new list from the given inputs" + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleInput, CoreNodeModels", + "NumberType": "Double", + "Id": "1bad47b3ef5a45e9b8496668ca3b49e6", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "8fc8deda86f84dd98fa427550384a873", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Creates a number", + "InputValue": 10.0 + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleInput, CoreNodeModels", + "NumberType": "Double", + "Id": "dff3e3a0b6ad49f6bee079c279f64216", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "67cc2a231f264de99f2a38539ef32907", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Creates a number", + "InputValue": 15.0 + }, + { + "ConcreteType": "CoreNodeModels.CreateList, CoreNodeModels", + "VariableInputPorts": true, + "Id": "27636f9e08bf4c859037e8dbc4912629", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "7d67ba72dcea45d4ad454406cf150868", + "Name": "item0", + "Description": "Item Index #0", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "c66f25593cd942a38b30a961fa45c635", + "Name": "item1", + "Description": "Item Index #1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "1969bc1e60e94ac697018254f99cf00d", + "Name": "item2", + "Description": "Item Index #2", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "aab689e2fe5147358518ebe4921de3b8", + "Name": "item3", + "Description": "Item Index #3", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "e4eb6cc3b5d44a91b3de7df4b3583138", + "Name": "list", + "Description": "A list (type: var[]..[])", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Makes a new list from the given inputs" + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleInput, CoreNodeModels", + "NumberType": "Double", + "Id": "968b8a50101045d5822288abe8cca8f9", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "f388a75c083e425cb29c30a455e0f347", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Creates a number", + "InputValue": 20.0 + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "92218af415a54ff296b1f8284254d252", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "10d405422bbf4ae8aa75477cd484699b", + "Name": "curve", + "Description": "Autodesk.DesignScript.Geometry.Curve", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "a7dc7d39d47a4c44981c57629dd9d3c5", + "Name": "distance", + "Description": "The distance to extrude the curve\n\ndouble\nDefault value : 1", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "868c622742cd4759b61347f1df3cea13", + "Name": "Surface", + "Description": "The extruded Surface", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Curve.Extrude@double", + "Replication": "Auto", + "Description": "Extrudes a Curve in the normal Vector direction\n\nCurve.Extrude (distance: double = 1): Surface" + } + ], + "Connectors": [ + { + "Start": "a893068488684662b5ee7af26bae9c42", + "End": "a7dc7d39d47a4c44981c57629dd9d3c5", + "Id": "3cd109ebc7ef4ef98492d99c05a419b0", + "IsHidden": "False" + }, + { + "Start": "3d9ca9356a624be283b1d96a746a0a07", + "End": "ad4b24a5de574948817ef8239b87068c", + "Id": "f0aaf200802c4148b4f847f6bf98c88d", + "IsHidden": "False" + }, + { + "Start": "7893aa81515b4894a28e2217a884a824", + "End": "10d405422bbf4ae8aa75477cd484699b", + "Id": "87ded8640af249b9a3f52a3a536c8547", + "IsHidden": "False" + }, + { + "Start": "b5a44e42f15d48ff928c1ad066aa84f0", + "End": "da2478f8414847cbaa64e7ada1f96310", + "Id": "e7ea401b552947e8b103834918907b6d", + "IsHidden": "False" + }, + { + "Start": "b5a44e42f15d48ff928c1ad066aa84f0", + "End": "c66f25593cd942a38b30a961fa45c635", + "Id": "f1282c6e79544ce6b52c575fe633418b", + "IsHidden": "False" + }, + { + "Start": "bcecbeb50ddb4b158145386dd388e635", + "End": "f128f6db21f44ea8b52516dfd2929334", + "Id": "34d4f40435264f3bb878c681779c1795", + "IsHidden": "False" + }, + { + "Start": "8fc8deda86f84dd98fa427550384a873", + "End": "3fb9ae71f183403d941df3a48bafb44b", + "Id": "bb062e396a154d5492874973bfab41c5", + "IsHidden": "False" + }, + { + "Start": "8fc8deda86f84dd98fa427550384a873", + "End": "1969bc1e60e94ac697018254f99cf00d", + "Id": "6365b54fb9244cba9e3967a3b82213b6", + "IsHidden": "False" + }, + { + "Start": "67cc2a231f264de99f2a38539ef32907", + "End": "82ae98cc99164538bef97349c862f452", + "Id": "44ed550c6dfa41e8ac82a392c6e9f0f4", + "IsHidden": "False" + }, + { + "Start": "67cc2a231f264de99f2a38539ef32907", + "End": "aab689e2fe5147358518ebe4921de3b8", + "Id": "8f0c0370e6014a439a566f01596c35ef", + "IsHidden": "False" + }, + { + "Start": "e4eb6cc3b5d44a91b3de7df4b3583138", + "End": "529d233f94394935b4e335951defb4ed", + "Id": "a9b79be7b16248f2913b7dafbe2eeaaa", + "IsHidden": "False" + }, + { + "Start": "f388a75c083e425cb29c30a455e0f347", + "End": "ed1e0da9cd9b4db6858656fa280606fd", + "Id": "41138fabd273400988e06e72c50fe5a4", + "IsHidden": "False" + }, + { + "Start": "f388a75c083e425cb29c30a455e0f347", + "End": "7d67ba72dcea45d4ad454406cf150868", + "Id": "fdd809167acd48eba0d2ff470b57602f", + "IsHidden": "False" + } + ], + "Dependencies": [], + "NodeLibraryDependencies": [], + "Thumbnail": "", + "GraphDocumentationURL": null, + "ExtensionWorkspaceData": [ + { + "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", + "Name": "Properties", + "Version": "3.0", + "Data": {} + } + ], + "Author": "", + "Linting": { + "activeLinter": "None", + "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", + "warningCount": 0, + "errorCount": 0 + }, + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 1.0, + "HasRunWithoutCrash": true, + "IsVisibleInDynamoLibrary": true, + "Version": "2.19.0.5874", + "RunType": "Manual", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "_Background Preview", + "EyeX": -17.718215942382813, + "EyeY": 22.505508422851563, + "EyeZ": 19.34986686706543, + "LookX": 12.718215942382813, + "LookY": -11.505508422851563, + "LookZ": -27.34986686706543, + "UpX": 0.062325332313776016, + "UpY": 0.98901587724685669, + "UpZ": -0.13402673602104187 + }, + "ConnectorPins": [], + "NodeViews": [ + { + "Id": "7d113d23afb54822bd422381dabab849", + "Name": "Number", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 937.30174332344222, + "Y": 403.03783382789317 + }, + { + "Id": "10ecc4a2ae844daf9e4303966ec718c9", + "Name": "Point.ByCoordinates", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 612.80174332344222, + "Y": 255.03783382789322 + }, + { + "Id": "2833e80082f94259899f7a7323830c4b", + "Name": "NurbsCurve.ByControlPoints", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 937.30174332344222, + "Y": 255.03783382789319 + }, + { + "Id": "af67f81ad6b341808aef32162ae19ef8", + "Name": "Number", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 120.30174332344222, + "Y": 102.03783382789317 + }, + { + "Id": "ef993fef7c464f45911f301c9d37d17b", + "Name": "List Create", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 352.80174332344222, + "Y": 148.03783382789317 + }, + { + "Id": "1bad47b3ef5a45e9b8496668ca3b49e6", + "Name": "Number", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 120.30174332344222, + "Y": 249.03783382789319 + }, + { + "Id": "dff3e3a0b6ad49f6bee079c279f64216", + "Name": "Number", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 120.30174332344222, + "Y": 544.03783382789311 + }, + { + "Id": "27636f9e08bf4c859037e8dbc4912629", + "Name": "List Create", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 352.80174332344222, + "Y": 396.03783382789317 + }, + { + "Id": "968b8a50101045d5822288abe8cca8f9", + "Name": "Number", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 120.30174332344222, + "Y": 397.03783382789322 + }, + { + "Id": "92218af415a54ff296b1f8284254d252", + "Name": "Curve.Extrude", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 1322.8017433234422, + "Y": 312.03783382789322 + } + ], + "Annotations": [], + "X": -11.654948242121804, + "Y": 62.251722825624, + "Zoom": 0.76582939285155194 + } +} \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, distance).md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, distance).md new file mode 100644 index 00000000000..fd07215110b --- /dev/null +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, distance).md @@ -0,0 +1,8 @@ +## In Depth +`Curve.Extrude (curve, distance)` extrudes an input curve using an input number to determine the distance of the extrusion. The direction of the normal vector along the curve is used for the extrusion direction. + +In the example below, we first create a NurbsCurve by using a `NurbsCurve.ByControlPoints` node, with a set of randomly generated points as the input. Then, we use a `Curve.Extrude` node to extrude the curve. A number slider is used as the `distance` input in the `Curve.Extrude` node. +___ +## Example File + +![Curve.Extrude(curve, distance)](./Autodesk.DesignScript.Geometry.Curve.Extrude(curve,%20distance)_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, distance)_img.jpg b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, distance)_img.jpg new file mode 100644 index 00000000000..e5193da8e33 Binary files /dev/null and b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Extrude(curve, distance)_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.ExtrudeAsSolid(curve, distance).dyn b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.ExtrudeAsSolid(curve, distance).dyn new file mode 100644 index 00000000000..9a81fa9d26f --- /dev/null +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.ExtrudeAsSolid(curve, distance).dyn @@ -0,0 +1,537 @@ +{ + "Uuid": "3c9d0464-8643-5ffe-96e5-ab1769818209", + "IsCustomNode": false, + "Description": "", + "Name": "Autodesk.DesignScript.Geometry.Curve.ExtrudeAsSolid", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [ + { + "Id": "4fd25c7abb42406eb64183323b390da8", + "Name": "Number Slider", + "Type": "number", + "Type2": "number", + "Value": "5", + "MaximumValue": 10.0, + "MinimumValue": 3.0, + "StepValue": 1.0, + "NumberType": "Double", + "Description": "Produces numeric values", + "SelectedIndex": 0 + }, + { + "Id": "5b4d90107c974168b1d6053bc480a259", + "Name": "Boolean", + "Type": "boolean", + "Type2": "boolean", + "Value": "true", + "Description": "Enables selection between True and False", + "SelectedIndex": 0 + }, + { + "Id": "4f3b2521746a4a8c8e5c2e438dacf042", + "Name": "Number Slider", + "Type": "number", + "Type2": "number", + "Value": "2", + "MaximumValue": 10.0, + "MinimumValue": -10.0, + "StepValue": 0.1, + "NumberType": "Double", + "Description": "Produces numeric values", + "SelectedIndex": 0 + } + ], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "7d7435f4dcd14a1bb0693f701ecda485", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "2d65ffe4cfe443df818d174ab092c7de", + "Name": "amount", + "Description": "Amount of random numbers the result list will contain.\n\nint", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "e42a07c299594147a3a64ac1b075a8b5", + "Name": "number", + "Description": "List of random numbers between 0 and 1.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "DSCore.Math.RandomList@int", + "Replication": "Auto", + "Description": "Produces a list containing the given amount of random doubles in the range of [0, 1).\n\nMath.RandomList (amount: int): var[]..[]" + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleSlider, CoreNodeModels", + "NumberType": "Double", + "MaximumValue": 10.0, + "MinimumValue": 3.0, + "StepValue": 1.0, + "Id": "4fd25c7abb42406eb64183323b390da8", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "15a6949436b446f8a8050d7047f12a85", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Produces numeric values", + "InputValue": 5.0 + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "11d18d7068564c249a8beb42837e0216", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "839139a1420a435d9914c76e55d5687e", + "Name": "coordinateSystem", + "Description": "Coordinate system to build the point in\n\nCoordinateSystem\nDefault value : Autodesk.DesignScript.Geometry.CoordinateSystem.ByOrigin(0, 0, 0)", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "bc43d77f9f6c479faaf689130f74e353", + "Name": "angle", + "Description": "The angle is the rotation from the X axis in the coordinate system around the Z axis in degrees\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "b4a379e398f542d5b2be39f22dcb982a", + "Name": "elevation", + "Description": "The elevation of the point above the XY plane\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "2897007591ee4de8a441db960083707c", + "Name": "radius", + "Description": "The distance from the origin of the coordinate system\n\ndouble\nDefault value : 1", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "9d977db65b4c4ec598d251614ba9cb2d", + "Name": "Point", + "Description": "Point at cylindrical coordinates", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Point.ByCylindricalCoordinates@Autodesk.DesignScript.Geometry.CoordinateSystem,double,double,double", + "Replication": "Auto", + "Description": "Form a Point in the given coordinate system given its position in cylindrical coordinates.\n\nPoint.ByCylindricalCoordinates (coordinateSystem: CoordinateSystem = Autodesk.DesignScript.Geometry.CoordinateSystem.ByOrigin(0, 0, 0), angle: double = 0, elevation: double = 0, radius: double = 1): Point" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "7ba7b96cdf3e43f2a51ba6620e80f8e9", + "NodeType": "CodeBlockNode", + "Inputs": [ + { + "Id": "40d7859b33a44c78a6b04321f1c0744e", + "Name": "x", + "Description": "x", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "7c09d9ef4362411a9ccf03b3bab9751b", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "x*5;" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "2946ae2a7ef446f2bdb3bc8fb1fdd096", + "NodeType": "CodeBlockNode", + "Inputs": [ + { + "Id": "2ce56b7a595a4c2bb8992652589e9bca", + "Name": "a", + "Description": "a", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "c6ee4f88894a47819b9c3a6508c93754", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "0..360..360/(a-1);" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "ca5657b3d8fa40a4a4a1338d2cb535f4", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "183f751e8a264fcb8cd929988398040e", + "Name": "points", + "Description": "Points for nurbs curve\n\nPoint[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "846ecfd9d96043cfba8085170f00814d", + "Name": "closeCurve", + "Description": "bool\nDefault value : false", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "f81be1339536455a99aabf625b6fcd14", + "Name": "NurbsCurve", + "Description": "Nurbscurve created from points", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.NurbsCurve.ByPoints@Autodesk.DesignScript.Geometry.Point[],bool", + "Replication": "Auto", + "Description": "Create a BSplineCurve by interpolating between points.\n\nNurbsCurve.ByPoints (points: Point[], closeCurve: bool = false): NurbsCurve" + }, + { + "ConcreteType": "CoreNodeModels.Input.BoolSelector, CoreNodeModels", + "Id": "5b4d90107c974168b1d6053bc480a259", + "NodeType": "BooleanInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "8a50121983da40bca3993de89bb9126b", + "Name": "", + "Description": "Boolean", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Enables selection between True and False", + "InputValue": true + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "f4b295e3381544ff8f84e24cad41c730", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "20cf24f98a2e47578afce6135f42cc6d", + "Name": "curve", + "Description": "Autodesk.DesignScript.Geometry.Curve", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "4ded32f84243478dba82831813f45397", + "Name": "distance", + "Description": "Distance to extrude\n\ndouble\nDefault value : 1", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "e705e881ea834b52ada6fb021493b596", + "Name": "Solid", + "Description": "The extruded Solid", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Curve.ExtrudeAsSolid@double", + "Replication": "Auto", + "Description": "Extrudes a Curve in the Normal direction by the specified distance. Curve must be closed.\n\nCurve.ExtrudeAsSolid (distance: double = 1): Solid" + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleSlider, CoreNodeModels", + "NumberType": "Double", + "MaximumValue": 10.0, + "MinimumValue": -10.0, + "StepValue": 0.1, + "Id": "4f3b2521746a4a8c8e5c2e438dacf042", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "117067d310c046c6ad067342f7854661", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Produces numeric values", + "InputValue": 2.0 + } + ], + "Connectors": [ + { + "Start": "e42a07c299594147a3a64ac1b075a8b5", + "End": "40d7859b33a44c78a6b04321f1c0744e", + "Id": "82e548ef0d0644d49299d3085369f318", + "IsHidden": "False" + }, + { + "Start": "15a6949436b446f8a8050d7047f12a85", + "End": "2d65ffe4cfe443df818d174ab092c7de", + "Id": "3df6eb229cb44841859aaf03978a537d", + "IsHidden": "False" + }, + { + "Start": "15a6949436b446f8a8050d7047f12a85", + "End": "2ce56b7a595a4c2bb8992652589e9bca", + "Id": "626639224a8e49a4bbb2d41ad2f6d847", + "IsHidden": "False" + }, + { + "Start": "9d977db65b4c4ec598d251614ba9cb2d", + "End": "183f751e8a264fcb8cd929988398040e", + "Id": "3196a496daa445aab507a0d16928f85e", + "IsHidden": "False" + }, + { + "Start": "7c09d9ef4362411a9ccf03b3bab9751b", + "End": "2897007591ee4de8a441db960083707c", + "Id": "e233062fe61047fd88cff3f5a789dc17", + "IsHidden": "False" + }, + { + "Start": "c6ee4f88894a47819b9c3a6508c93754", + "End": "bc43d77f9f6c479faaf689130f74e353", + "Id": "9ccbda4bff18491998e540f223c8b946", + "IsHidden": "False" + }, + { + "Start": "f81be1339536455a99aabf625b6fcd14", + "End": "20cf24f98a2e47578afce6135f42cc6d", + "Id": "b118ec25ca03453ea5d1bdec3b0ca953", + "IsHidden": "False" + }, + { + "Start": "8a50121983da40bca3993de89bb9126b", + "End": "846ecfd9d96043cfba8085170f00814d", + "Id": "b6a8a3428d5b470aa03e4055e0e492cf", + "IsHidden": "False" + }, + { + "Start": "117067d310c046c6ad067342f7854661", + "End": "4ded32f84243478dba82831813f45397", + "Id": "6e6ee1d1f80040b19db23fcb7bfb4c50", + "IsHidden": "False" + } + ], + "Dependencies": [], + "NodeLibraryDependencies": [], + "Thumbnail": "", + "GraphDocumentationURL": null, + "ExtensionWorkspaceData": [ + { + "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", + "Name": "Properties", + "Version": "2.19", + "Data": {} + } + ], + "Author": "None provided", + "Linting": { + "activeLinter": "None", + "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", + "warningCount": 0, + "errorCount": 0 + }, + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 1.0, + "HasRunWithoutCrash": true, + "IsVisibleInDynamoLibrary": true, + "Version": "2.19.0.5742", + "RunType": "Automatic", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "_Background Preview", + "EyeX": -3.62465238571167, + "EyeY": 9.2647066116333, + "EyeZ": 10.161786079406738, + "LookX": 6.6045675277709961, + "LookY": -9.2482500076293945, + "LookZ": -18.156381607055664, + "UpX": 0.078060783445835114, + "UpY": 0.9735788106918335, + "UpZ": -0.21459411084651947 + }, + "ConnectorPins": [], + "NodeViews": [ + { + "Id": "7d7435f4dcd14a1bb0693f701ecda485", + "Name": "Math.RandomList", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": -529.958720393653, + "Y": 241.1898338525456 + }, + { + "Id": "4fd25c7abb42406eb64183323b390da8", + "Name": "Number Slider", + "IsSetAsInput": true, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": -977.958720393653, + "Y": 167.18983385254555 + }, + { + "Id": "11d18d7068564c249a8beb42837e0216", + "Name": "Point.ByCylindricalCoordinates", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 145.04127960634696, + "Y": 99.362333852545532 + }, + { + "Id": "7ba7b96cdf3e43f2a51ba6620e80f8e9", + "Name": "Code Block", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": -208.95872039365304, + "Y": 241.1898338525456 + }, + { + "Id": "2946ae2a7ef446f2bdb3bc8fb1fdd096", + "Name": "Code Block", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": -208.95872039365304, + "Y": 93.189833852545519 + }, + { + "Id": "ca5657b3d8fa40a4a4a1338d2cb535f4", + "Name": "NurbsCurve.ByPoints", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 549.041279606347, + "Y": 206.36233385254553 + }, + { + "Id": "5b4d90107c974168b1d6053bc480a259", + "Name": "Boolean", + "IsSetAsInput": true, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 145.04127960634696, + "Y": 347.36233385254553 + }, + { + "Id": "f4b295e3381544ff8f84e24cad41c730", + "Name": "Curve.ExtrudeAsSolid", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 997.041279606347, + "Y": 278.36233385254553 + }, + { + "Id": "4f3b2521746a4a8c8e5c2e438dacf042", + "Name": "Number Slider", + "IsSetAsInput": true, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 549.041279606347, + "Y": 384.36233385254553 + } + ], + "Annotations": [], + "X": 533.15332654527322, + "Y": 31.966041969565367, + "Zoom": 0.54514375520319824 + } +} \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.ExtrudeAsSolid(curve, distance).md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.ExtrudeAsSolid(curve, distance).md new file mode 100644 index 00000000000..f1661a2f645 --- /dev/null +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.ExtrudeAsSolid(curve, distance).md @@ -0,0 +1,8 @@ +## In Depth +`Curve.ExtrudeAsSolid (curve, distance)` extrudes an input closed, planar curve using an input number to determine the distance of the extrusion. The direction of the extrusion is determined by the normal vector of the plane that the curve lies in. This node caps the ends of the extrusion to create a solid. + +In the example below, we first create a NurbsCurve by using a `NurbsCurve.ByPoints` node, with a set of randomly generated points as the input. Then, a `Curve.ExtrudeAsSolid` node is used to extrude the curve as a solid. A number slider is used as the `distance` input in the `Curve.ExtrudeAsSolid` node. +___ +## Example File + +![Curve.ExtrudeAsSolid(curve, distance)](./Autodesk.DesignScript.Geometry.Curve.ExtrudeAsSolid(curve, distance)_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.ExtrudeAsSolid(curve, distance)_img.jpg b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.ExtrudeAsSolid(curve, distance)_img.jpg new file mode 100644 index 00000000000..d8668c6ff86 Binary files /dev/null and b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.ExtrudeAsSolid(curve, distance)_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Length.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Length.md index 9a45bba422b..0df8980629a 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Length.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Length.md @@ -1,5 +1,8 @@ ## In Depth -Length returns the length of a curtain panel's boundary as a double. This can be used even if the curtain panel is not rectangular. +`Curve.Length` returns the length of an input curve. + +In the example below, we first create a NurbsCurve by using a `NurbsCurve.ByControlPoints` node, with a set of randomly generated points as the input. We can find the length of this curve by using a `Curve.Length` node. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Normal.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Normal.md index 54de81654a4..b5d59c2bb0d 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Normal.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.Normal.md @@ -1,5 +1,8 @@ ## In Depth -Plane Normal will find the normal vector of an input plane. This is also equal to taking the cross product of the plane XAxis and YAxis. In the example below we first use a set of random points to create a Plane by Best Fit Through Points. We can then find the normal vector of this plane. +`Curve.Normal` returns the normal vector of an input curve. The curve must be planar for this node. + +In the example below, we first create a NurbsCurve by using a `NurbsCurveByControlPoints` node, with a set of randomly generated points as the input. We find the normal of this curve by using a `Curve.Normal` node. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.NormalAtParameter(curve, param).dyn b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.NormalAtParameter(curve, param).dyn new file mode 100644 index 00000000000..2fec92b8266 --- /dev/null +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.NormalAtParameter(curve, param).dyn @@ -0,0 +1,601 @@ +{ + "Uuid": "e7c1bea8-d711-49d2-87ac-463f8439a79d", + "IsCustomNode": false, + "Description": "", + "Name": "Autodesk.DesignScript.Geometry.Curve.NormalAtParameter", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [ + { + "Id": "5bafc66cadac464c81202cd161ef0351", + "Name": "Number Slider", + "Type": "number", + "Type2": "number", + "Value": "0.3", + "MaximumValue": 1.0, + "MinimumValue": 0.0, + "StepValue": 0.01, + "NumberType": "Double", + "Description": "Produces numeric values", + "SelectedIndex": 0 + } + ], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "a7d68c64a9264b81873ba82991eb06e8", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "f984c15204124843b703f902ee2a21a6", + "Name": "points", + "Description": "Points for nurbs curve\n\nPoint[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "f23dd6f752a34713b4f1c84d466d80fa", + "Name": "NurbsCurve", + "Description": "Nurbscurve created from points", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.NurbsCurve.ByControlPoints@Autodesk.DesignScript.Geometry.Point[]", + "Replication": "Auto", + "Description": "Create a BSplineCurve by using explicit control points. NOTE 1: BSplineCurves with deg=1 have G1 discontinuities, which cause problems for extrusion, sweep, and other operations. They should be avoided. Use a PolyCurve instead. NOTE 2: If the curve is periodic (closed), then the first and last points MUST be the same.\n\nNurbsCurve.ByControlPoints (points: Point[]): NurbsCurve" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "ad238e218fa8440aa4bce92e13793c4b", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "eb8b8c2565934609afe003de5dda4f51", + "Name": "amount", + "Description": "Amount of random numbers the result list will contain.\n\nint", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "3fa88cf3f3614fbe82bb72cc628d7cd6", + "Name": "number", + "Description": "List of random numbers between 0 and 1.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "DSCore.Math.RandomList@int", + "Replication": "Auto", + "Description": "Produces a list containing the given amount of random doubles in the range of [0, 1).\n\nMath.RandomList (amount: int): var[]..[]" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "520f3bca48004d78a659fa89590e9bfa", + "NodeType": "CodeBlockNode", + "Inputs": [], + "Outputs": [ + { + "Id": "08eb3d9307574dd887cbc3f88904a30a", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "6;" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "7af4a320c7a24f138ea9e32740d56882", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "dd7cc843cee74fe0b062fb0ada98fcde", + "Name": "amount", + "Description": "Amount of random numbers the result list will contain.\n\nint", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "8232f81acf5147f6a0cb97595260c12d", + "Name": "number", + "Description": "List of random numbers between 0 and 1.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "DSCore.Math.RandomList@int", + "Replication": "Auto", + "Description": "Produces a list containing the given amount of random doubles in the range of [0, 1).\n\nMath.RandomList (amount: int): var[]..[]" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "969a7350eff64e749affe2b491f358c6", + "NodeType": "CodeBlockNode", + "Inputs": [ + { + "Id": "f1287e25b183470e8eece192c57769b5", + "Name": "x", + "Description": "x", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "9749eb59b2e44d06a15170f8aeec37ac", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "x*10;" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "f428c88d6a1040919ef686701236109c", + "NodeType": "CodeBlockNode", + "Inputs": [ + { + "Id": "53cb35e01a524ff798525a2e062fe260", + "Name": "x", + "Description": "x", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "35dab245e5c142fd87b7c7de7dbda24f", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "x*10;" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "8395e71d54c6432495e946eebf9a8f4d", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "0fd7e4adf8e24440a2c7535cd6cfdd87", + "Name": "x", + "Description": "X coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "0794920554d446298ad277f0ce6a6794", + "Name": "y", + "Description": "Y coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "1f28105cb2f74b2898d2d01e379fe272", + "Name": "z", + "Description": "Z coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "06612e6cc05e47fc87a03b9e42e052ea", + "Name": "Point", + "Description": "Point created by coordinates", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Point.ByCoordinates@double,double,double", + "Replication": "Auto", + "Description": "Form a Point given 3 cartesian coordinates\n\nPoint.ByCoordinates (x: double = 0, y: double = 0, z: double = 0): Point" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "3b8e5913715341efbf1fe41357e16195", + "NodeType": "CodeBlockNode", + "Inputs": [ + { + "Id": "6947d7b3b8f74d08955f2c7d9665de83", + "Name": "x", + "Description": "x", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "5311d75561934956bce9b855d714af72", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "x*5;" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "7f0a66fc22b14f0aaf9c0fb04c226c48", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "2ea2ecee33604ed5a533ab2d8226c71d", + "Name": "amount", + "Description": "Amount of random numbers the result list will contain.\n\nint", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "cbfa120ed8b741ea906e0ff8e30b50a8", + "Name": "number", + "Description": "List of random numbers between 0 and 1.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "DSCore.Math.RandomList@int", + "Replication": "Auto", + "Description": "Produces a list containing the given amount of random doubles in the range of [0, 1).\n\nMath.RandomList (amount: int): var[]..[]" + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleSlider, CoreNodeModels", + "NumberType": "Double", + "MaximumValue": 1.0, + "MinimumValue": 0.0, + "StepValue": 0.01, + "Id": "5bafc66cadac464c81202cd161ef0351", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "101140458a6848639de2e97078c4a789", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Produces numeric values", + "InputValue": 0.3 + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "49ec5a1c6e1e4c7f82d190f2d0b53fb0", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "98573f71a8c24f9eb7fe1ba656555890", + "Name": "curve", + "Description": "Autodesk.DesignScript.Geometry.Curve", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "08852bf1ccdc4938acfbc0395e8b7ce3", + "Name": "param", + "Description": "The parameter at which to evaluate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "210d610d3a0245249562e32d40168780", + "Name": "Vector", + "Description": "A Vector perpendicular to the curve at param", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Curve.NormalAtParameter@double", + "Replication": "Auto", + "Description": "Get a Vector perpendicular to the curve at a specified parameter between StartParameter() and EndParameter()\n\nCurve.NormalAtParameter (param: double = 0): Vector" + } + ], + "Connectors": [ + { + "Start": "f23dd6f752a34713b4f1c84d466d80fa", + "End": "98573f71a8c24f9eb7fe1ba656555890", + "Id": "8c1b55ad239d4d82a47d76ba4615c980", + "IsHidden": "False" + }, + { + "Start": "3fa88cf3f3614fbe82bb72cc628d7cd6", + "End": "f1287e25b183470e8eece192c57769b5", + "Id": "90af014434994f0bbd83303aae2bf7bb", + "IsHidden": "False" + }, + { + "Start": "08eb3d9307574dd887cbc3f88904a30a", + "End": "eb8b8c2565934609afe003de5dda4f51", + "Id": "34d05af1eb584222a5bc782e81af0cde", + "IsHidden": "False" + }, + { + "Start": "08eb3d9307574dd887cbc3f88904a30a", + "End": "dd7cc843cee74fe0b062fb0ada98fcde", + "Id": "a9daa8cf1992482eb78ab663d19e045a", + "IsHidden": "False" + }, + { + "Start": "08eb3d9307574dd887cbc3f88904a30a", + "End": "2ea2ecee33604ed5a533ab2d8226c71d", + "Id": "807e44540dea457ba4e0fd590d5de222", + "IsHidden": "False" + }, + { + "Start": "8232f81acf5147f6a0cb97595260c12d", + "End": "53cb35e01a524ff798525a2e062fe260", + "Id": "cc658cc647a8430093944a0a0e43c380", + "IsHidden": "False" + }, + { + "Start": "9749eb59b2e44d06a15170f8aeec37ac", + "End": "0fd7e4adf8e24440a2c7535cd6cfdd87", + "Id": "61b3e584d8dc4eb6af14f34c2085d8cd", + "IsHidden": "False" + }, + { + "Start": "35dab245e5c142fd87b7c7de7dbda24f", + "End": "0794920554d446298ad277f0ce6a6794", + "Id": "d3c0d9b2c6b54025890b73a7bbd012fd", + "IsHidden": "False" + }, + { + "Start": "06612e6cc05e47fc87a03b9e42e052ea", + "End": "f984c15204124843b703f902ee2a21a6", + "Id": "2309ff4dac184151832c88793d513a2b", + "IsHidden": "False" + }, + { + "Start": "5311d75561934956bce9b855d714af72", + "End": "1f28105cb2f74b2898d2d01e379fe272", + "Id": "7db55e51dc90496985edd6523ffff021", + "IsHidden": "False" + }, + { + "Start": "cbfa120ed8b741ea906e0ff8e30b50a8", + "End": "6947d7b3b8f74d08955f2c7d9665de83", + "Id": "9f6588b6193842c19144c5d8014380c3", + "IsHidden": "False" + }, + { + "Start": "101140458a6848639de2e97078c4a789", + "End": "08852bf1ccdc4938acfbc0395e8b7ce3", + "Id": "c60e608609164825923764978b698144", + "IsHidden": "False" + } + ], + "Dependencies": [], + "NodeLibraryDependencies": [], + "Thumbnail": "", + "GraphDocumentationURL": null, + "ExtensionWorkspaceData": [ + { + "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", + "Name": "Properties", + "Version": "2.19", + "Data": {} + } + ], + "Author": "None provided", + "Linting": { + "activeLinter": "None", + "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", + "warningCount": 0, + "errorCount": 0 + }, + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 1.0, + "HasRunWithoutCrash": true, + "IsVisibleInDynamoLibrary": true, + "Version": "2.19.0.5742", + "RunType": "Automatic", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "_Background Preview", + "EyeX": -3.4816887378692627, + "EyeY": 9.2835006713867188, + "EyeZ": 3.9581344127655029, + "LookX": 7.4863224029541016, + "LookY": -5.3477129936218262, + "LookZ": -7.8918704986572266, + "UpX": 0.16416347026824951, + "UpY": 0.9711342453956604, + "UpZ": -0.17305652797222137 + }, + "ConnectorPins": [], + "NodeViews": [ + { + "Id": "a7d68c64a9264b81873ba82991eb06e8", + "Name": "NurbsCurve.ByControlPoints", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 366.95475847575403, + "Y": -3561.8570960863349 + }, + { + "Id": "ad238e218fa8440aa4bce92e13793c4b", + "Name": "Math.RandomList", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": -533.045241524246, + "Y": -3675.029596086335 + }, + { + "Id": "520f3bca48004d78a659fa89590e9bfa", + "Name": "Code Block", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": -787.045241524246, + "Y": -3528.2020960863351 + }, + { + "Id": "7af4a320c7a24f138ea9e32740d56882", + "Name": "Math.RandomList", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": -533.045241524246, + "Y": -3528.029596086335 + }, + { + "Id": "969a7350eff64e749affe2b491f358c6", + "Name": "Code Block", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": -212.04524152424597, + "Y": -3675.029596086335 + }, + { + "Id": "f428c88d6a1040919ef686701236109c", + "Name": "Code Block", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": -212.04524152424597, + "Y": -3528.029596086335 + }, + { + "Id": "8395e71d54c6432495e946eebf9a8f4d", + "Name": "Point.ByCoordinates", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 41.954758475754033, + "Y": -3561.8570960863349 + }, + { + "Id": "3b8e5913715341efbf1fe41357e16195", + "Name": "Code Block", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": -212.04524152424597, + "Y": -3381.029596086335 + }, + { + "Id": "7f0a66fc22b14f0aaf9c0fb04c226c48", + "Name": "Math.RandomList", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": -533.045241524246, + "Y": -3381.029596086335 + }, + { + "Id": "5bafc66cadac464c81202cd161ef0351", + "Name": "Number Slider", + "IsSetAsInput": true, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 366.95475847575403, + "Y": -3413.8570960863349 + }, + { + "Id": "49ec5a1c6e1e4c7f82d190f2d0b53fb0", + "Name": "Curve.NormalAtParameter", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 814.954758475754, + "Y": -3504.8570960863349 + } + ], + "Annotations": [], + "X": 520.93439057734008, + "Y": 1899.6398672206337, + "Zoom": 0.47402678864922743 + } +} \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.NormalAtParameter(curve, param).md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.NormalAtParameter(curve, param).md new file mode 100644 index 00000000000..2c8fece865a --- /dev/null +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.NormalAtParameter(curve, param).md @@ -0,0 +1,8 @@ +## In Depth +`Curve.NormalAtParameter (curve, param)` returns a vector aligned with the normal direction at the specified parameter of a curve. The parameterization of a curve is measured in the range from 0 to 1, with 0 representing the start of the curve and 1 representing the end of the curve. + +In the example below, we first create a NurbsCurve using a `NurbsCurve.ByControlPoints` node, with a set of randomly generated points as the input. A number slider set to the range 0 to 1 is used to control the `parameter` input for a `Curve.NormalAtParameter` node. +___ +## Example File + +![Curve.NormalAtParameter(curve, param](./Autodesk.DesignScript.Geometry.Curve.NormalAtParameter(curve,%20param)_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.NormalAtParameter(curve, param)_img.jpg b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.NormalAtParameter(curve, param)_img.jpg new file mode 100644 index 00000000000..96984d1075e Binary files /dev/null and b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.NormalAtParameter(curve, param)_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SplitByParameter.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SplitByParameter.md index ecfb4685f8b..3f52bd823eb 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SplitByParameter.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SplitByParameter.md @@ -1,5 +1,8 @@ ## In Depth -Split the Curve into pieces given the supplide parameters. +`Curve.SplitByParameter (curve, parameters)` takes a curve and a list of parameters as inputs. It splits the curve at the specified parameters and returns a list of resulting curves. + +In the example below, we first create a NurbsCurve using a `NurbsCurve.ByControlPoints` node, with a set of randomly generated points as the input. A code block is used to create a series of numbers between 0 and 1 to use as the list of parameters at which the curve is split. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid.dyn b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid(curve, path, cutEndOff).dyn similarity index 71% rename from doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid.dyn rename to doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid(curve, path, cutEndOff).dyn index 8498fec863e..a49f065c839 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid.dyn +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid(curve, path, cutEndOff).dyn @@ -1,5 +1,5 @@ { - "Uuid": "3c9d0464-8643-5ffe-96e5-ab1769818209", + "Uuid": "e5b0fa4e-6552-44b2-8855-af1d80cb6bb0", "IsCustomNode": false, "Description": "", "Name": "Autodesk.DesignScript.Geometry.Curve.SweepAsSolid", @@ -16,13 +16,12 @@ "Nodes": [ { "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "32f3c5e12fc74cd4abcd8f04bffbc0cc", "NodeType": "CodeBlockNode", - "Code": "0..180..36;", - "Id": "46e9280f2cf84b88842f22ae48fb5fce", "Inputs": [], "Outputs": [ { - "Id": "f4069c3f094c4aafbfad76330a0c20d1", + "Id": "00b6f749726c4c7e89ab1bfa07e23c08", "Name": "", "Description": "Value of expression at line 1", "UsingDefaultValue": false, @@ -32,16 +31,16 @@ } ], "Replication": "Disabled", - "Description": "Allows for DesignScript code to be authored directly" + "Description": "Allows for DesignScript code to be authored directly", + "Code": "0..180..36;" }, { "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "1e50b068eb85475aab075d6babde972b", "NodeType": "FunctionNode", - "FunctionSignature": "Autodesk.DesignScript.Geometry.Point.ByCoordinates@double,double,double", - "Id": "de50a8e3de5541a88428f9da60515e1a", "Inputs": [ { - "Id": "2d861276ee9f466dab5e386945f5be02", + "Id": "9621b44fe0744c3da3e5f3f0ac413db6", "Name": "x", "Description": "X coordinate\n\ndouble\nDefault value : 0", "UsingDefaultValue": true, @@ -50,7 +49,7 @@ "KeepListStructure": false }, { - "Id": "9a07f7670df4407f8ba251f260e0c1a7", + "Id": "7c5bb15ddf884979986d7a2603d78ce0", "Name": "y", "Description": "Y coordinate\n\ndouble\nDefault value : 0", "UsingDefaultValue": true, @@ -59,7 +58,7 @@ "KeepListStructure": false }, { - "Id": "512866259cba440bb681be5e22d207d0", + "Id": "a43d9e8b6275407a9f3f35c5f64c4e01", "Name": "z", "Description": "Z coordinate\n\ndouble\nDefault value : 0", "UsingDefaultValue": true, @@ -70,7 +69,7 @@ ], "Outputs": [ { - "Id": "3bc42500ae72433397068df4e1e8d773", + "Id": "acbc90dbc1ac4ebd9f932d3a3658834d", "Name": "Point", "Description": "Point created by coordinates", "UsingDefaultValue": false, @@ -79,18 +78,18 @@ "KeepListStructure": false } ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Point.ByCoordinates@double,double,double", "Replication": "Auto", "Description": "Form a Point given 3 cartesian coordinates\n\nPoint.ByCoordinates (x: double = 0, y: double = 0, z: double = 0): Point" }, { "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "e85cbb0b89fe46b4baaa8e209ef9117b", "NodeType": "CodeBlockNode", - "Code": "0..5..1;", - "Id": "1e47f83f107a45a285aa21437c1fbc1c", "Inputs": [], "Outputs": [ { - "Id": "81d93da6cff74533af77b7e8cbcedff4", + "Id": "1bea4242775d461e8e3d39f10e944f46", "Name": "", "Description": "Value of expression at line 1", "UsingDefaultValue": false, @@ -100,16 +99,16 @@ } ], "Replication": "Disabled", - "Description": "Allows for DesignScript code to be authored directly" + "Description": "Allows for DesignScript code to be authored directly", + "Code": "0..5..1;" }, { "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "48cde1c1e42442c393a4f550eb1d4dd4", "NodeType": "FunctionNode", - "FunctionSignature": "DSCore.Math.Cos@double", - "Id": "46a8d2063011486e91f0607dc215fe0d", "Inputs": [ { - "Id": "ebd62c8a98f2486d9fddde1c56c5ee2c", + "Id": "4330f968ec064f83a0bd1f5a41451d6a", "Name": "angle", "Description": "Angle in degrees to take the cosine of.\n\ndouble", "UsingDefaultValue": false, @@ -120,7 +119,7 @@ ], "Outputs": [ { - "Id": "0b4a0e5c28b5429d98f89c99f323b1e9", + "Id": "948c8913646242de97d5ce72d0d96f7d", "Name": "double", "Description": "Cosine of the angle", "UsingDefaultValue": false, @@ -129,17 +128,17 @@ "KeepListStructure": false } ], + "FunctionSignature": "DSCore.Math.Cos@double", "Replication": "Auto", "Description": "Finds the cosine of an angle.\n\nMath.Cos (angle: double): double" }, { "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "7522689d9a5b4e7286df88e8c6ab9a37", "NodeType": "FunctionNode", - "FunctionSignature": "Autodesk.DesignScript.Geometry.NurbsCurve.ByPoints@Autodesk.DesignScript.Geometry.Point[]", - "Id": "ead95318805a4a978c334b11db7b52a1", "Inputs": [ { - "Id": "df8130b4bd0443cbbf01a28e10723a4b", + "Id": "c4b9cbe7a0b3426ca0c823cbc680854d", "Name": "points", "Description": "Points for nurbs curve\n\nPoint[]", "UsingDefaultValue": false, @@ -150,7 +149,7 @@ ], "Outputs": [ { - "Id": "d50376efa2c8443e8baa4c65e177ddc5", + "Id": "d6e6c83cc5944577a1473d67fe28728b", "Name": "NurbsCurve", "Description": "Nurbscurve created from points", "UsingDefaultValue": false, @@ -159,17 +158,17 @@ "KeepListStructure": false } ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.NurbsCurve.ByPoints@Autodesk.DesignScript.Geometry.Point[]", "Replication": "Auto", "Description": "Create a BSplineCurve by interpolating between points.\n\nNurbsCurve.ByPoints (points: Point[]): NurbsCurve" }, { "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "34a9a091613d468497496d586ef4f79d", "NodeType": "CodeBlockNode", - "Code": "x-2;", - "Id": "1101b3b4be6343899e395a8c6f85da83", "Inputs": [ { - "Id": "8fcc8148882f4ca0b7bb8f03e4779e0d", + "Id": "1021431fe2d84726a5ff81ee8b2a4e8d", "Name": "x", "Description": "x", "UsingDefaultValue": false, @@ -180,7 +179,7 @@ ], "Outputs": [ { - "Id": "64fe2c88e68640fca357da5a768b92e4", + "Id": "824ad923cd524cb3ba8ffbeea0195c6f", "Name": "", "Description": "Value of expression at line 1", "UsingDefaultValue": false, @@ -190,16 +189,16 @@ } ], "Replication": "Disabled", - "Description": "Allows for DesignScript code to be authored directly" + "Description": "Allows for DesignScript code to be authored directly", + "Code": "x-2;" }, { "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "41a65c4200024a6dad503208ac3a2f17", "NodeType": "FunctionNode", - "FunctionSignature": "Autodesk.DesignScript.Geometry.Rectangle.ByWidthLength@double,double", - "Id": "7b6e987559c242e6b4b3d982e04583a8", "Inputs": [ { - "Id": "f819f97fb3604426a2e3d0326f04d26a", + "Id": "2723f78c39d740baa99518c17d2266ce", "Name": "width", "Description": "Width of rectangle\n\ndouble\nDefault value : 1", "UsingDefaultValue": true, @@ -208,7 +207,7 @@ "KeepListStructure": false }, { - "Id": "d1d827ad6dbb4a3e9bde527cb3a6d155", + "Id": "2fa80a56b4204610975187293f197725", "Name": "length", "Description": "Length of rectangle\n\ndouble\nDefault value : 1", "UsingDefaultValue": true, @@ -219,7 +218,7 @@ ], "Outputs": [ { - "Id": "5a93adf8d1c345569935e20946c35cf8", + "Id": "19e635b157fb49c488c1d24a359b9962", "Name": "Rectangle", "Description": "Rectangle created by width and length", "UsingDefaultValue": false, @@ -228,18 +227,18 @@ "KeepListStructure": false } ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Rectangle.ByWidthLength@double,double", "Replication": "Auto", "Description": "Create a Rectangle centered at the WCS origin in the WCS XY Plane, with specified width (X Axis length), and length (Y Axis length).\n\nRectangle.ByWidthLength (width: double = 1, length: double = 1): Rectangle" }, { "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "0393c74829c446338bebdc078fdaa202", "NodeType": "CodeBlockNode", - "Code": "2;", - "Id": "0cb269c723704daf9e8e7a94f8800a2b", "Inputs": [], "Outputs": [ { - "Id": "3f673accce824be39eec1318ae84ddf4", + "Id": "808ca571522742dd88ecd49cfd5fa972", "Name": "", "Description": "Value of expression at line 1", "UsingDefaultValue": false, @@ -249,16 +248,16 @@ } ], "Replication": "Disabled", - "Description": "Allows for DesignScript code to be authored directly" + "Description": "Allows for DesignScript code to be authored directly", + "Code": "2;" }, { "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "0f3be53c354e49a09a08736f02399916", "NodeType": "FunctionNode", - "FunctionSignature": "Autodesk.DesignScript.Geometry.Curve.SweepAsSolid@Autodesk.DesignScript.Geometry.Curve,bool", - "Id": "f0c8209b026949dca4251b1227482edf", "Inputs": [ { - "Id": "58b7f426d940488599fd761478fa0dea", + "Id": "9499b990ee154eb0a39ab8f6f93020d4", "Name": "curve", "Description": "Autodesk.DesignScript.Geometry.Curve", "UsingDefaultValue": false, @@ -267,7 +266,7 @@ "KeepListStructure": false }, { - "Id": "d935696726b74ebab0dbc9121054bb7e", + "Id": "156bdd34ebd248518c27491213de3235", "Name": "path", "Description": "The path that represent the sweep path\n\nCurve", "UsingDefaultValue": false, @@ -276,7 +275,7 @@ "KeepListStructure": false }, { - "Id": "51273deeefec45859abe2a253f35de21", + "Id": "efe852ccba474864a8e99b37b4fd7573", "Name": "cutEndOff", "Description": "Cut the end of the sweep and make it normal to the path\n\nbool\nDefault value : false", "UsingDefaultValue": true, @@ -287,7 +286,7 @@ ], "Outputs": [ { - "Id": "3e2cdf4bbf324c90a1f0ae3036f758bd", + "Id": "7e70a2d93a514386bc7f4b16b379e18e", "Name": "Solid", "Description": "A solid that sweeps this closed Curve along the path Curve", "UsingDefaultValue": false, @@ -296,69 +295,70 @@ "KeepListStructure": false } ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Curve.SweepAsSolid@Autodesk.DesignScript.Geometry.Curve,bool", "Replication": "Auto", "Description": "Sweeps this closed Curve along the path Curve, creating a Solid\n\nCurve.SweepAsSolid (path: Curve, cutEndOff: bool = false): Solid" } ], "Connectors": [ { - "Start": "f4069c3f094c4aafbfad76330a0c20d1", - "End": "ebd62c8a98f2486d9fddde1c56c5ee2c", - "Id": "38f4c43017ce465791f63ab8c4a0c1dc", + "Start": "00b6f749726c4c7e89ab1bfa07e23c08", + "End": "4330f968ec064f83a0bd1f5a41451d6a", + "Id": "7db6dc6aa50b4810a8cd1f0e50d48af0", "IsHidden": "False" }, { - "Start": "3bc42500ae72433397068df4e1e8d773", - "End": "df8130b4bd0443cbbf01a28e10723a4b", - "Id": "83d8312ae14747d086f16e199562ff6c", + "Start": "acbc90dbc1ac4ebd9f932d3a3658834d", + "End": "c4b9cbe7a0b3426ca0c823cbc680854d", + "Id": "05fa3494401f4ef18f31f4b31d5123a7", "IsHidden": "False" }, { - "Start": "81d93da6cff74533af77b7e8cbcedff4", - "End": "512866259cba440bb681be5e22d207d0", - "Id": "bffae81024d048218b1acafb8b60bcfa", + "Start": "1bea4242775d461e8e3d39f10e944f46", + "End": "a43d9e8b6275407a9f3f35c5f64c4e01", + "Id": "bb92390c41994ac683f02ead9412a5b4", "IsHidden": "False" }, { - "Start": "0b4a0e5c28b5429d98f89c99f323b1e9", - "End": "8fcc8148882f4ca0b7bb8f03e4779e0d", - "Id": "d47b90c11fdb49fd98ddef2fe1cc51e2", + "Start": "948c8913646242de97d5ce72d0d96f7d", + "End": "1021431fe2d84726a5ff81ee8b2a4e8d", + "Id": "dfbbd4056cf0476b9f832d6b25dfc566", "IsHidden": "False" }, { - "Start": "d50376efa2c8443e8baa4c65e177ddc5", - "End": "d935696726b74ebab0dbc9121054bb7e", - "Id": "0a39ce3092664be6a951b5fef68412d5", + "Start": "d6e6c83cc5944577a1473d67fe28728b", + "End": "156bdd34ebd248518c27491213de3235", + "Id": "19574850cd144a309d21de1f4ce465a6", "IsHidden": "False" }, { - "Start": "64fe2c88e68640fca357da5a768b92e4", - "End": "2d861276ee9f466dab5e386945f5be02", - "Id": "67b2f9a3283f41b8a7020ba0e85585b0", + "Start": "824ad923cd524cb3ba8ffbeea0195c6f", + "End": "9621b44fe0744c3da3e5f3f0ac413db6", + "Id": "2a4c95cbabbb47a58d0c32f5f3580e78", "IsHidden": "False" }, { - "Start": "5a93adf8d1c345569935e20946c35cf8", - "End": "58b7f426d940488599fd761478fa0dea", - "Id": "002406dfc07f4146a1e362ec4b0ad4fb", + "Start": "19e635b157fb49c488c1d24a359b9962", + "End": "9499b990ee154eb0a39ab8f6f93020d4", + "Id": "e0d3508a78bb40ac9ea1141697ff20e4", "IsHidden": "False" }, { - "Start": "3f673accce824be39eec1318ae84ddf4", - "End": "f819f97fb3604426a2e3d0326f04d26a", - "Id": "1f830a81c8c84ffe8971183b0253b4cf", + "Start": "808ca571522742dd88ecd49cfd5fa972", + "End": "2723f78c39d740baa99518c17d2266ce", + "Id": "9fc5d35b6f8f4ca7a61a9085db8b3066", "IsHidden": "False" } ], "Dependencies": [], "NodeLibraryDependencies": [], - "Thumbnail": null, + "Thumbnail": "", "GraphDocumentationURL": null, "ExtensionWorkspaceData": [ { "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", "Name": "Properties", - "Version": "2.17", + "Version": "2.19", "Data": {} } ], @@ -375,118 +375,118 @@ "ScaleFactor": 1.0, "HasRunWithoutCrash": true, "IsVisibleInDynamoLibrary": true, - "Version": "2.17.0.3255", - "RunType": "Manual", + "Version": "2.19.0.5742", + "RunType": "Automatic", "RunPeriod": "1000" }, "Camera": { "Name": "_Background Preview", - "EyeX": -10.819255828857422, - "EyeY": 4.1498737335205078, - "EyeZ": 7.4183993339538574, - "LookX": 10.980081558227539, - "LookY": -0.21393844485282898, - "LookZ": -8.58186149597168, - "UpX": -0.15708129107952118, - "UpY": 0.97992467880249023, - "UpZ": 0.12277230620384216 + "EyeX": -9.7833023071289063, + "EyeY": 6.161107063293457, + "EyeZ": 10.048727989196777, + "LookX": 6.2058191299438477, + "LookY": -0.82160615921020508, + "LookZ": -12.452702522277832, + "UpX": -0.06977478414773941, + "UpY": 0.98768836259841919, + "UpZ": 0.14001153409481049 }, "ConnectorPins": [], "NodeViews": [ { + "Id": "32f3c5e12fc74cd4abcd8f04bffbc0cc", "Name": "Code Block", - "ShowGeometry": true, - "Id": "46e9280f2cf84b88842f22ae48fb5fce", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": -982.77434718964014, - "Y": 188.05819007606192 + "ShowGeometry": true, + "X": -1023.7198597657745, + "Y": 186.55819007606192 }, { + "Id": "1e50b068eb85475aab075d6babde972b", "Name": "Point.ByCoordinates", - "ShowGeometry": true, - "Id": "de50a8e3de5541a88428f9da60515e1a", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": -154.77434718964025, - "Y": 227.40319007606197 + "ShowGeometry": true, + "X": -195.71985976577446, + "Y": 226.90319007606195 }, { + "Id": "e85cbb0b89fe46b4baaa8e209ef9117b", "Name": "Code Block", - "ShowGeometry": true, - "Id": "1e47f83f107a45a285aa21437c1fbc1c", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": -409.17434718964023, - "Y": 334.23069007606193 + "ShowGeometry": true, + "X": -449.71985976577446, + "Y": 334.73069007606193 }, { + "Id": "48cde1c1e42442c393a4f550eb1d4dd4", "Name": "Math.Cos", - "ShowGeometry": true, - "Id": "46a8d2063011486e91f0607dc215fe0d", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": -712.37434718964016, - "Y": 188.23069007606193 + "ShowGeometry": true, + "X": -752.71985976577446, + "Y": 186.73069007606193 }, { + "Id": "7522689d9a5b4e7286df88e8c6ab9a37", "Name": "NurbsCurve.ByPoints", - "ShowGeometry": true, - "Id": "ead95318805a4a978c334b11db7b52a1", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 170.02565281035982, - "Y": 227.40319007606197 + "ShowGeometry": true, + "X": 129.28014023422554, + "Y": 226.90319007606195 }, { + "Id": "34a9a091613d468497496d586ef4f79d", "Name": "Code Block", - "ShowGeometry": true, - "Id": "1101b3b4be6343899e395a8c6f85da83", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": -409.17434718964023, - "Y": 188.23069007606193 + "ShowGeometry": true, + "X": -449.71985976577446, + "Y": 186.73069007606193 }, { + "Id": "41a65c4200024a6dad503208ac3a2f17", "Name": "Rectangle.ByWidthLength", - "ShowGeometry": true, - "Id": "7b6e987559c242e6b4b3d982e04583a8", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 170.02565281035982, - "Y": 49.403190076061918 + "ShowGeometry": true, + "X": 129.28014023422554, + "Y": 48.903190076061946 }, { + "Id": "0393c74829c446338bebdc078fdaa202", "Name": "Code Block", - "ShowGeometry": true, - "Id": "0cb269c723704daf9e8e7a94f8800a2b", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": -154.77434718964025, - "Y": 49.230690076061933 + "ShowGeometry": true, + "X": -195.71985976577446, + "Y": 48.730690076061933 }, { + "Id": "0f3be53c354e49a09a08736f02399916", "Name": "Curve.SweepAsSolid", - "ShowGeometry": true, - "Id": "f0c8209b026949dca4251b1227482edf", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 536.42565281035968, - "Y": 121.40319007606192 + "ShowGeometry": true, + "X": 476.34475235663513, + "Y": 113.66016328142138 } ], "Annotations": [], - "X": 744.00064532525028, - "Y": 54.140530852501257, - "Zoom": 0.73302752293578 + "X": 715.77047668236651, + "Y": 70.574999695881047, + "Zoom": 0.65243989526115775 } } \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid(curve, path, cutEndOff).md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid(curve, path, cutEndOff).md new file mode 100644 index 00000000000..dc06e1e905d --- /dev/null +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid(curve, path, cutEndOff).md @@ -0,0 +1,8 @@ +## In Depth +`Curve.SweepAsSolid` creates a solid by sweeping an input closed profile curve along a specified path. + +In the example below, we use a rectangle as the base profile curve. The path is created by using a cosine function with a sequence of angles to vary the x-coordinates of a set of points. The points are used as the input to a `NurbsCurve.ByPoints` node. We then create a solid by sweeping the rectangle along the created cosine curve with a `Curve.SweepAsSolid` node. +___ +## Example File + +![Curve.SweepAsSolid(curve, path, cutEndOff)](./Autodesk.DesignScript.Geometry.Curve.SweepAsSolid(curve,%20path,%20cutEndOff)_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid(curve, path, cutEndOff)_img.jpg b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid(curve, path, cutEndOff)_img.jpg new file mode 100644 index 00000000000..877a9eeab07 Binary files /dev/null and b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid(curve, path, cutEndOff)_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid.md deleted file mode 100644 index 2ba95017c52..00000000000 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid.md +++ /dev/null @@ -1,7 +0,0 @@ -## In Depth -Sweep As Solid will create a solid by sweeping an input closed profile curve along a specified path. In the example below, we use a rectangle as the base profile curve. The path is created by using a cosine function with a sequence of angles to vary the x-coordinates of a set of points. The points are used as the input to a NurbsCurve.ByPoints node. We then create a solid by sweeping the rectangle along the created cosine curve. -___ -## Example File - -![SweepAsSolid](./Autodesk.DesignScript.Geometry.Curve.SweepAsSolid_img.jpg) - diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid_img.jpg b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid_img.jpg deleted file mode 100644 index 2d4a9d406aa..00000000000 Binary files a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Curve.SweepAsSolid_img.jpg and /dev/null differ diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Ellipse.CenterPoint.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Ellipse.CenterPoint.md index f9dcce60db5..a7e740d7bdd 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Ellipse.CenterPoint.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Ellipse.CenterPoint.md @@ -1,5 +1,8 @@ ## In Depth -Center Point will return the center of an input sphere. In the example below, we use a ByBestFit node to create a sphere based on a set of random points. We then use a CenterPoint node to determine the center of the best fit sphere. +`Ellipse.CenterPoint` returns the center point of an input ellipse. Note that this point does not contain any information about the orientation or plane of the ellipse. + +In the example below, we first create an ellipse by using `Ellipse.ByPlaneRadii`, then find the center point. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.EllipseArc.CenterPoint.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.EllipseArc.CenterPoint.md index 1489e6cdb29..d8ea96bb243 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.EllipseArc.CenterPoint.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.EllipseArc.CenterPoint.md @@ -1,5 +1,8 @@ ## In Depth -Center Point will return the center of an input sphere. In the example below, we use a ByBestFit node to create a sphere based on a set of random points. We then use a CenterPoint node to determine the center of the best fit sphere. +`EllipseArc.CenterPoint` finds the center point of an ellipse arc, which is the same as the center point of the completed ellipse. + +In the example below, we first create an ellipse arc by using the XY plane and a series of number sliders. We then use `EllipseArc.CenterPoint` to extract the center of the ellipse. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.EllipseArc.Plane.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.EllipseArc.Plane.md index 9804777ee38..9bc172160f6 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.EllipseArc.Plane.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.EllipseArc.Plane.md @@ -1,5 +1,8 @@ ## In Depth -Sketch planes are used in the creation of 2D and 3D geometry in Revit. +`EllipseArc.Plane` finds the plane of an ellipse arc, which is the same as the plane of the completed ellipse. + +In the example below, we first create an ellipse arc by using the XY plane and a series of number sliders. We then use `EllipseArc.Plane` to extract the plane of the ellipse. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Helix.Radius.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Helix.Radius.md index 1d5ba3f35b8..2e165447063 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Helix.Radius.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Helix.Radius.md @@ -1,5 +1,8 @@ ## In Depth -Radius will return the center of an input sphere. In the example below, we use a ByBestFit node to create a sphere based on a set of random points. We then use a Radius node to determine the size of the best fit sphere. +`Helix.Radius` returns the distance from the central axis to the point on the helix on a plane perpendicular to the axis. + +In the example below, we create a helix using `Helix.ByAxis`, then use `Helix.Radius` to find the radius of the helix. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Line.ByBestFitThroughPoints.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Line.ByBestFitThroughPoints.md index c4329c64777..af79f180a22 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Line.ByBestFitThroughPoints.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Line.ByBestFitThroughPoints.md @@ -1,5 +1,8 @@ ## In Depth -Plane By Best Fit Through Points uses a set of points and finds the plane that best approximates the set. In the example, we use a series of RandomList components to generate random x,y and z coordinates. The points are created By Coordinates, and the list of points is then used as an input for ByBestFitThroughPoints. +`Line.BestFitThroughPoints` creates a line by approximating a scatter plot of points. The input is a list of points. + +In the example below, we use a number slider to control the number of random points generated and then find the best fit line through the set of points. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Line.ByStartPointEndPoint.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Line.ByStartPointEndPoint.md index e8aaefa84cc..3f27a7b7f2f 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Line.ByStartPointEndPoint.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Line.ByStartPointEndPoint.md @@ -1,5 +1,8 @@ ## In Depth -Reference planes can be created in both Revit projects and families. The reference plane in Revit does not dynamically change with its Dynamo inputs. +`Line.ByStartPointEndPoint` creates a line between two input points. + +In the example below, we use two code blocks to specify the X, Y, and Z coordinates of two points and then create a line between the two points. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.PolyCurve.ByPoints.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.PolyCurve.ByPoints.md index 0229ce9e376..b96a29710a9 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.PolyCurve.ByPoints.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.PolyCurve.ByPoints.md @@ -1,5 +1,8 @@ ## In Depth -Revit will generate and contour a mesh from a list of supplied points. The points cannot be collinear. +`PolyCurve.ByPoints` creates joined curves from a set of vertices. This node also enables toggling between a closed and an open shape with the `connectLastToFirst` input. + +In the example below, points are created along a circle and are redrawn with a `PolyCurve.ByPoints` node, creating a closed polygon shape. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.PolyCurve.Curves.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.PolyCurve.Curves.md index 2899b31d92e..9d17eac521b 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.PolyCurve.Curves.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.PolyCurve.Curves.md @@ -1,5 +1,8 @@ ## In Depth -A revision cloud's curves are returned as geometry in Dynamo. +`PolyCurve.Curves` returns a list of the individual curves that make up an input PolyCurve. + +In the example below, we generate a set of random points and then use `PolyCurve.ByPoints` to create an open PolyCurve. We then use `PolyCurve.Curves` to generate a list of the individual curves making up the PolyCurve. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Polygon.ByPoints.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Polygon.ByPoints.md index d5be3cc90ff..cbcae55887c 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Polygon.ByPoints.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Polygon.ByPoints.md @@ -1,5 +1,8 @@ ## In Depth -Revit will generate and contour a mesh from a list of supplied points. The points cannot be collinear. +`Polygon.ByPoints` creates a polygon from a list of input points. The points will be connected in the order of the list they originate from. + +In the example below, we create a list of random points driven by a number slider. We then use a `Polygon.ByPoints` node to connect the points with lines. + ___ ## Example File diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Scale(vector, xScaleFactor, yScaleFactor, zScaleFactor).dyn b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Scale(vector, xScaleFactor, yScaleFactor, zScaleFactor).dyn new file mode 100644 index 00000000000..32eb1fa23a7 --- /dev/null +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Scale(vector, xScaleFactor, yScaleFactor, zScaleFactor).dyn @@ -0,0 +1,643 @@ +{ + "Uuid": "111cf6f6-c4ce-4bdb-8db3-472f0949aaf6", + "IsCustomNode": false, + "Description": "", + "Name": "Autodesk.DesignScript.Geometry.Vector.Scale", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "149651b06b454fd6a9c2a0302c1103a9", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "214353ad7009475493f91c6067fdccba", + "Name": "x", + "Description": "X coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "bcee67db4a4d4ff1a137f030f5025885", + "Name": "y", + "Description": "Y coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "4da101597e9546139bb0f3a888a50c28", + "Name": "z", + "Description": "Z coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "1cb974396497441e84b48cc184f0a3ff", + "Name": "Vector", + "Description": "Vector created by coordinates", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Vector.ByCoordinates@double,double,double", + "Replication": "Auto", + "Description": "Form a Vector by 3 Euclidean coordinates\n\nVector.ByCoordinates (x: double = 0, y: double = 0, z: double = 0): Vector" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "5dd6bf4863824faf91ef85623e357fae", + "NodeType": "CodeBlockNode", + "Inputs": [], + "Outputs": [ + { + "Id": "52c596de45ae4271a5e19f0bcc69b301", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "1;" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "6c8310f38b96449f8f88bd7eb4873744", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "7c8bb65ac6a64583b66fafa08e6ab052", + "Name": "vector", + "Description": "Autodesk.DesignScript.Geometry.Vector", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "bd78dc8a0ac94ea19e3d182be9b72b68", + "Name": "double", + "Description": "double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Vector.Length", + "Replication": "Auto", + "Description": "Get the length of the vector otherwise known as the Euclidean norm.\n\nVector.Length: double" + }, + { + "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 140.0, + "WatchHeight": 38.4, + "Id": "7b94ac48d72746fa954c0598a31a7c1e", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "29966581515740ae9fe6bea7546fe9b7", + "Name": "", + "Description": "Node to show output from", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "70aba4282e904901aac869da6bd9088f", + "Name": "", + "Description": "Node output", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Visualizes a node's output" + }, + { + "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 140.0, + "WatchHeight": 38.4, + "Id": "7754a3af90b14041b8610c575f9877c5", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "6da3d5411018460bb7595f300431c1c6", + "Name": "", + "Description": "Node to show output from", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "ec601449ab104741bd0f79f4453388ec", + "Name": "", + "Description": "Node output", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Visualizes a node's output" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "1a9e6708d97845a4801fa32914c57421", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "ed90e8bab26941e3b9c125740dc9fc03", + "Name": "vector", + "Description": "Autodesk.DesignScript.Geometry.Vector", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "372ead3b2b7b4553884779ea8b83df92", + "Name": "double", + "Description": "double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Vector.Length", + "Replication": "Auto", + "Description": "Get the length of the vector otherwise known as the Euclidean norm.\n\nVector.Length: double" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "4eb49fdafed1499ea6f15d6c91361bce", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "4c3988c5d0af44b28d50e3e9b05efee1", + "Name": "vector", + "Description": "Autodesk.DesignScript.Geometry.Vector", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "a2e8d3e7b8d244f7a778bb2feb48c907", + "Name": "xScaleFactor", + "Description": "double\nDefault value : 1", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "3837a01fe2314e2d8f50d19a6a8affbf", + "Name": "yScaleFactor", + "Description": "double\nDefault value : 1", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "7c823df4e1fa46be8f59feccca31e5b0", + "Name": "zScaleFactor", + "Description": "double\nDefault value : 1", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "d53995a012374411aa6451180a5085da", + "Name": "Vector", + "Description": "Vector", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Vector.Scale@double,double,double", + "Replication": "Auto", + "Description": "Scale Vector non-uniformly around the origin\n\nVector.Scale (xScaleFactor: double = 1, yScaleFactor: double = 1, zScaleFactor: double = 1): Vector" + }, + { + "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 27.2, + "WatchHeight": 38.4, + "Id": "ca663badb76449f58b966fdbb1e8669d", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "a7cdb9a7a4d44613810703c18fb1d000", + "Name": "", + "Description": "Node to show output from", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "fd037518fdf347b4917cd3dda46c9713", + "Name": "", + "Description": "Node output", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Visualizes a node's output" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "6ca2b44cbc6c4c069e4781c8eed0496b", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "c9f3605f425142e49b818e97c7ec8051", + "Name": "vector", + "Description": "Autodesk.DesignScript.Geometry.Vector", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "b19fe0d673104996a812f95b98a51041", + "Name": "double", + "Description": "double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Vector.Length", + "Replication": "Auto", + "Description": "Get the length of the vector otherwise known as the Euclidean norm.\n\nVector.Length: double" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "383a5a5a95164061adcbbd34cf12815b", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "5b4184ae3b7240d58086f98d70097154", + "Name": "vector", + "Description": "Autodesk.DesignScript.Geometry.Vector", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "e2e5e2e5c3d640cd92f9b12dd05484d9", + "Name": "xScaleFactor", + "Description": "double\nDefault value : 1", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "08d43ba84ecd403c9a785c2bff9722b4", + "Name": "yScaleFactor", + "Description": "double\nDefault value : 1", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "34045992774e412c8d21fb0cdc13b550", + "Name": "zScaleFactor", + "Description": "double\nDefault value : 1", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "6a9e98ec88ef44c991224050835dcc6b", + "Name": "Vector", + "Description": "Vector", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Vector.Scale@double,double,double", + "Replication": "Auto", + "Description": "Scale Vector non-uniformly around the origin\n\nVector.Scale (xScaleFactor: double = 1, yScaleFactor: double = 1, zScaleFactor: double = 1): Vector" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "c822eaff2c62419ebc4de600f0961087", + "NodeType": "CodeBlockNode", + "Inputs": [], + "Outputs": [ + { + "Id": "381e0f9e007a4f60af869b1ab8f9c687", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "2;" + } + ], + "Connectors": [ + { + "Start": "1cb974396497441e84b48cc184f0a3ff", + "End": "4c3988c5d0af44b28d50e3e9b05efee1", + "Id": "49ce457bca0149aa85c6d6f4ef6d9c16", + "IsHidden": "False" + }, + { + "Start": "1cb974396497441e84b48cc184f0a3ff", + "End": "ed90e8bab26941e3b9c125740dc9fc03", + "Id": "f7288872a1db4be399bbe979b86ccc0e", + "IsHidden": "False" + }, + { + "Start": "1cb974396497441e84b48cc184f0a3ff", + "End": "5b4184ae3b7240d58086f98d70097154", + "Id": "565ba4224e974a2a81782b91be2d56f7", + "IsHidden": "False" + }, + { + "Start": "52c596de45ae4271a5e19f0bcc69b301", + "End": "214353ad7009475493f91c6067fdccba", + "Id": "4498bd859a41434db59bfcf9926f8f44", + "IsHidden": "False" + }, + { + "Start": "52c596de45ae4271a5e19f0bcc69b301", + "End": "bcee67db4a4d4ff1a137f030f5025885", + "Id": "160d1f36cbac4bcf88827f0799a95625", + "IsHidden": "False" + }, + { + "Start": "52c596de45ae4271a5e19f0bcc69b301", + "End": "4da101597e9546139bb0f3a888a50c28", + "Id": "2acfc2f7a5144239a0aca18fd3354da4", + "IsHidden": "False" + }, + { + "Start": "bd78dc8a0ac94ea19e3d182be9b72b68", + "End": "29966581515740ae9fe6bea7546fe9b7", + "Id": "461524f71a3f4f0db760c51ff95a1284", + "IsHidden": "False" + }, + { + "Start": "372ead3b2b7b4553884779ea8b83df92", + "End": "6da3d5411018460bb7595f300431c1c6", + "Id": "171a70a2a6ea4b1d8d91193c90db99fb", + "IsHidden": "False" + }, + { + "Start": "d53995a012374411aa6451180a5085da", + "End": "7c8bb65ac6a64583b66fafa08e6ab052", + "Id": "da435a852a04427a934fd00ec3a30d6f", + "IsHidden": "False" + }, + { + "Start": "b19fe0d673104996a812f95b98a51041", + "End": "a7cdb9a7a4d44613810703c18fb1d000", + "Id": "4115207f8d944062b76c595023c33d38", + "IsHidden": "False" + }, + { + "Start": "6a9e98ec88ef44c991224050835dcc6b", + "End": "c9f3605f425142e49b818e97c7ec8051", + "Id": "9d228ba79ba54bed858f984cc02ea398", + "IsHidden": "False" + }, + { + "Start": "381e0f9e007a4f60af869b1ab8f9c687", + "End": "a2e8d3e7b8d244f7a778bb2feb48c907", + "Id": "e021e2d4c0a84d12b2358bac4e338300", + "IsHidden": "False" + }, + { + "Start": "381e0f9e007a4f60af869b1ab8f9c687", + "End": "08d43ba84ecd403c9a785c2bff9722b4", + "Id": "a2b745f682d2445d923a5426bc0c0cac", + "IsHidden": "False" + }, + { + "Start": "381e0f9e007a4f60af869b1ab8f9c687", + "End": "34045992774e412c8d21fb0cdc13b550", + "Id": "c2567daa2e0644ec8d499b558825cc0e", + "IsHidden": "False" + } + ], + "Dependencies": [], + "NodeLibraryDependencies": [], + "Thumbnail": "", + "GraphDocumentationURL": null, + "ExtensionWorkspaceData": [ + { + "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", + "Name": "Properties", + "Version": "2.19", + "Data": {} + } + ], + "Author": "None provided", + "Linting": { + "activeLinter": "None", + "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", + "warningCount": 0, + "errorCount": 0 + }, + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 1.0, + "HasRunWithoutCrash": true, + "IsVisibleInDynamoLibrary": true, + "Version": "2.19.0.5742", + "RunType": "Automatic", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "_Background Preview", + "EyeX": -2.3680846691131592, + "EyeY": 3.16054105758667, + "EyeZ": -10.044923782348633, + "LookX": 3.8618874549865723, + "LookY": -0.66080021858215332, + "LookZ": 6.5273284912109375, + "UpX": -0.06558285653591156, + "UpY": 0.99167114496231079, + "UpZ": -0.11084761470556259 + }, + "ConnectorPins": [], + "NodeViews": [ + { + "Id": "149651b06b454fd6a9c2a0302c1103a9", + "Name": "Vector.ByCoordinates", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 2394.3275265767497, + "Y": 3871.23247073368 + }, + { + "Id": "5dd6bf4863824faf91ef85623e357fae", + "Name": "Code Block", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 2140.3275265767497, + "Y": 3905.05997073368 + }, + { + "Id": "6c8310f38b96449f8f88bd7eb4873744", + "Name": "Vector.Length", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 3068.3275265767497, + "Y": 3919.23247073368 + }, + { + "Id": "7b94ac48d72746fa954c0598a31a7c1e", + "Name": "Watch", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 3376.3275265767497, + "Y": 3919.23247073368 + }, + { + "Id": "7754a3af90b14041b8610c575f9877c5", + "Name": "Watch", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 3376.3275265767497, + "Y": 3768.23247073368 + }, + { + "Id": "1a9e6708d97845a4801fa32914c57421", + "Name": "Vector.Length", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 3068.3275265767497, + "Y": 3768.23247073368 + }, + { + "Id": "4eb49fdafed1499ea6f15d6c91361bce", + "Name": "Vector.Scale", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 2727.3275265767497, + "Y": 3871.23247073368 + }, + { + "Id": "ca663badb76449f58b966fdbb1e8669d", + "Name": "Watch", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 3376.3275265767497, + "Y": 4070.23247073368 + }, + { + "Id": "6ca2b44cbc6c4c069e4781c8eed0496b", + "Name": "Vector.Length", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 3068.3275265767497, + "Y": 4070.23247073368 + }, + { + "Id": "383a5a5a95164061adcbbd34cf12815b", + "Name": "Vector.Scale", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 2727.3275265767497, + "Y": 4118.23247073368 + }, + { + "Id": "c822eaff2c62419ebc4de600f0961087", + "Name": "Code Block", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 2394.3275265767497, + "Y": 4186.0599707336805 + } + ], + "Annotations": [], + "X": -675.85951208778488, + "Y": -1526.4036443658533, + "Zoom": 0.46370552382733077 + } +} \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Scale(vector, xScaleFactor, yScaleFactor, zScaleFactor).md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Scale(vector, xScaleFactor, yScaleFactor, zScaleFactor).md new file mode 100644 index 00000000000..5c2c9d64bc4 --- /dev/null +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Scale(vector, xScaleFactor, yScaleFactor, zScaleFactor).md @@ -0,0 +1,9 @@ +## In Depth +`Vector.Scale (vector, xScaleFactor, yScaleFactor, zScaleFactor)` returns a new vector scaled non-uniformly in the X, Y, and Z directions. + +In the example below, two new vectors are scaled from an X scale factor and Y/Z scale factors, respectively. All given scale factors are 2, yet different vector lengths are returned from scaling in different and/or multiple directions. + +___ +## Example File + +![Vector.Scale](./Autodesk.DesignScript.Geometry.Vector.Scale(vector,%20xScaleFactor,%20yScaleFactor,%20zScaleFactor)_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Scale(vector, xScaleFactor, yScaleFactor, zScaleFactor)_img.jpg b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Scale(vector, xScaleFactor, yScaleFactor, zScaleFactor)_img.jpg new file mode 100644 index 00000000000..dc373b67648 Binary files /dev/null and b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Scale(vector, xScaleFactor, yScaleFactor, zScaleFactor)_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Z.dyn b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Z.dyn index 9e5964c33ca..5dc9b474406 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Z.dyn +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Z.dyn @@ -1,8 +1,8 @@ { - "Uuid": "3c9d0464-8643-5ffe-96e5-ab1769818209", + "Uuid": "b28933ce-a7c4-48ce-af6e-d354a4e006ff", "IsCustomNode": false, "Description": "", - "Name": "Z", + "Name": "Autodesk.DesignScript.Geometry.Vector.Z", "ElementResolver": { "ResolutionMap": { "Point": { @@ -17,47 +17,48 @@ }, "Inputs": [ { - "Id": "b8fc629975a445ffa681797e35fd8042", + "Id": "c827651eef88487ab612e34b04f6e15c", "Name": "Vector Scale", "Type": "number", + "Type2": "number", "Value": "1.65", "MaximumValue": 2.0, "MinimumValue": 1.0, "StepValue": 0.01, "NumberType": "Double", - "Description": "A slider that produces numeric values." + "Description": "Produces numeric values", + "SelectedIndex": 0 } ], "Outputs": [], "Nodes": [ { "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "b743a19a2230487b8e5cf55683b8e880", "NodeType": "FunctionNode", - "FunctionSignature": "Autodesk.DesignScript.Geometry.Line.ByStartPointDirectionLength@Autodesk.DesignScript.Geometry.Point,Autodesk.DesignScript.Geometry.Vector,double", - "Id": "6d1ee31ae12c4eab8b51c20d47755015", "Inputs": [ { - "Id": "ac92e80c505d4ea7a68ad8a2d2a1696c", + "Id": "ae0213ab90ae49b1976acdd808529d08", "Name": "startPoint", - "Description": "Point", + "Description": "Line start point\n\nPoint", "UsingDefaultValue": false, "Level": 2, "UseLevels": false, "KeepListStructure": false }, { - "Id": "e379b0273c0c4fa68865357988981c9e", + "Id": "df26943265d94874983d0fda2ea969d9", "Name": "direction", - "Description": "Vector", + "Description": "Direction vector\n\nVector", "UsingDefaultValue": false, "Level": 2, "UseLevels": false, "KeepListStructure": false }, { - "Id": "b88e4335c7974225a8fd857da44faaa1", + "Id": "e3637b9c33e543d18bda072d74f064bc", "Name": "length", - "Description": "double\nDefault value : 1", + "Description": "Length of line\n\ndouble\nDefault value : 1", "UsingDefaultValue": true, "Level": 2, "UseLevels": false, @@ -66,25 +67,28 @@ ], "Outputs": [ { - "Id": "44623ba9ce644339a571de7448a99f95", + "Id": "acc16b5382b745d2a699b417fd5c8d46", "Name": "Line", - "Description": "Line", + "Description": "Line from start direction and length", "UsingDefaultValue": false, "Level": 2, "UseLevels": false, "KeepListStructure": false } ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Line.ByStartPointDirectionLength@Autodesk.DesignScript.Geometry.Point,Autodesk.DesignScript.Geometry.Vector,double", "Replication": "Auto", "Description": "Create a straight Line starting at start Point, extending in Vector direction by specified length.\n\nLine.ByStartPointDirectionLength (startPoint: Point, direction: Vector, length: double = 1): Line" }, { "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 27.2, + "WatchHeight": 38.4, + "Id": "b7f9cd398d7f4f2299ab4940d217f2a2", "NodeType": "ExtensionNode", - "Id": "9b79cf50ce83432bbe01330522ae3dfb", "Inputs": [ { - "Id": "ba3b3f405e6c4682aeb8aaa5e0d5d40b", + "Id": "a440b288f13a43f498fa1cd8d3332b41", "Name": "", "Description": "Node to evaluate.", "UsingDefaultValue": false, @@ -95,7 +99,7 @@ ], "Outputs": [ { - "Id": "1fc0c2934f234ce0be69fc02b063e8de", + "Id": "2ff5ca1f9da84f718f38cc2dc1b4d093", "Name": "", "Description": "Watch contents.", "UsingDefaultValue": false, @@ -105,17 +109,16 @@ } ], "Replication": "Disabled", - "Description": "Visualize the output of node." + "Description": "Visualizes a node's output" }, { "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "1bb4946e914245bba169bfc501e18bb9", "NodeType": "CodeBlockNode", - "Code": "Point.ByCoordinates(0,2,0);\nVector.ByCoordinates(4,2,3);", - "Id": "b2f274f8a001463b84f919669986dec5", "Inputs": [], "Outputs": [ { - "Id": "c1133eb4143e4c92af52bd41231b146e", + "Id": "c2b8f39bd790430abb674a638434cd9e", "Name": "", "Description": "Value of expression at line 1", "UsingDefaultValue": false, @@ -124,7 +127,7 @@ "KeepListStructure": false }, { - "Id": "f131975a02c441c5ab83a4fa4a7ea197", + "Id": "771aa1583f8f4d0aa2e54281badadb7e", "Name": "", "Description": "Value of expression at line 2", "UsingDefaultValue": false, @@ -134,21 +137,21 @@ } ], "Replication": "Disabled", - "Description": "Allows for DesignScript code to be authored directly" + "Description": "Allows for DesignScript code to be authored directly", + "Code": "Point.ByCoordinates(0,2,0);\nVector.ByCoordinates(4,2,3);" }, { "ConcreteType": "CoreNodeModels.Input.DoubleSlider, CoreNodeModels", - "NodeType": "NumberInputNode", "NumberType": "Double", "MaximumValue": 2.0, "MinimumValue": 1.0, "StepValue": 0.01, - "InputValue": 1.65, - "Id": "b8fc629975a445ffa681797e35fd8042", + "Id": "c827651eef88487ab612e34b04f6e15c", + "NodeType": "NumberInputNode", "Inputs": [], "Outputs": [ { - "Id": "569c7ccdca3c48208fbcd782ff518863", + "Id": "65452d1995af40ae9291b2315b65714a", "Name": "", "Description": "Double", "UsingDefaultValue": false, @@ -158,16 +161,16 @@ } ], "Replication": "Disabled", - "Description": "A slider that produces numeric values." + "Description": "Produces numeric values", + "InputValue": 1.65 }, { "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "539bde5f63bb4679b741a1efabb947b4", "NodeType": "FunctionNode", - "FunctionSignature": "Autodesk.DesignScript.Geometry.Vector.Scale@double", - "Id": "5cc0666e903141948c079c526d64b536", "Inputs": [ { - "Id": "45c771ee4e76467698c6facc569b7201", + "Id": "1dea5a23a8164e50807586d6683f7cbb", "Name": "vector", "Description": "Autodesk.DesignScript.Geometry.Vector", "UsingDefaultValue": false, @@ -176,9 +179,9 @@ "KeepListStructure": false }, { - "Id": "37ee545a12794760b154f31baeb51792", + "Id": "e4ff7d8b6108466497372a9f2e941d89", "Name": "scale_factor", - "Description": "double\nDefault value : 1", + "Description": "Scale factor\n\ndouble\nDefault value : 1", "UsingDefaultValue": true, "Level": 2, "UseLevels": false, @@ -187,25 +190,28 @@ ], "Outputs": [ { - "Id": "e972f628bc96487c8c92c5d261de7109", + "Id": "2faccf4036ba47c59c1fb4e0c5994e06", "Name": "Vector", - "Description": "Vector", + "Description": "Scaled vector", "UsingDefaultValue": false, "Level": 2, "UseLevels": false, "KeepListStructure": false } ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Vector.Scale@double", "Replication": "Auto", "Description": "Scale Vector uniformly around the origin\n\nVector.Scale (scale_factor: double = 1): Vector" }, { "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 49.6, + "WatchHeight": 38.4, + "Id": "721fe57caf5546fc9fb5fe2a0a6a0608", "NodeType": "ExtensionNode", - "Id": "beb23d6dcc2f4a9a85d81f988ba6b3b1", "Inputs": [ { - "Id": "397c7d5b87e541539e2f2557e003c91f", + "Id": "7d8e44c48adb48bf996ed3b2f77a26f0", "Name": "", "Description": "Node to evaluate.", "UsingDefaultValue": false, @@ -216,7 +222,7 @@ ], "Outputs": [ { - "Id": "c7e2ad343cd144348ebfaad08b09e0ae", + "Id": "c6a2bfe3ac7b493a9f5497eda2b1b72f", "Name": "", "Description": "Watch contents.", "UsingDefaultValue": false, @@ -226,16 +232,15 @@ } ], "Replication": "Disabled", - "Description": "Visualize the output of node." + "Description": "Visualizes a node's output" }, { "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "ef904e758e524ac08e86d1b3b03d2286", "NodeType": "FunctionNode", - "FunctionSignature": "Autodesk.DesignScript.Geometry.Vector.Length", - "Id": "b0cc6cb7929c44e7852b0f68ff15f88f", "Inputs": [ { - "Id": "efa6a03474ce4049863bca3e1e579aba", + "Id": "010922a510d646039886e1369c865e88", "Name": "vector", "Description": "Autodesk.DesignScript.Geometry.Vector", "UsingDefaultValue": false, @@ -246,7 +251,7 @@ ], "Outputs": [ { - "Id": "270e223431c7402a8d4dbbd4ea7cf0ed", + "Id": "92b0e600812742d3993ccae8428555a8", "Name": "double", "Description": "double", "UsingDefaultValue": false, @@ -255,17 +260,17 @@ "KeepListStructure": false } ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Vector.Length", "Replication": "Auto", - "Description": "Get the length of the vector - otherwise known as the Euclidean norm\n\nVector.Length: double" + "Description": "Get the length of the vector otherwise known as the Euclidean norm.\n\nVector.Length: double" }, { "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "5138f09bfa184eeb80877b29f8323917", "NodeType": "FunctionNode", - "FunctionSignature": "Autodesk.DesignScript.Geometry.Vector.Z", - "Id": "7577e97b30a74957b1bf28e693c48894", "Inputs": [ { - "Id": "33dee35212394145b35adaa7cf64936c", + "Id": "20a559de5f5349c1889e1266c170b85a", "Name": "vector", "Description": "Autodesk.DesignScript.Geometry.Vector", "UsingDefaultValue": false, @@ -276,7 +281,7 @@ ], "Outputs": [ { - "Id": "4a982f361d254845b39b069c7597f1cf", + "Id": "6166473e124d4d9b836aef1a14a13565", "Name": "double", "Description": "double", "UsingDefaultValue": false, @@ -285,17 +290,17 @@ "KeepListStructure": false } ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Vector.Z", "Replication": "Auto", - "Description": "Get the Z component of a Vector\n\nVector.Z: double" + "Description": "Get the Z value of a vector.\n\nVector.Z: double" }, { "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "43f9a7cfc61d42dd84ed1b6b9409b219", "NodeType": "FunctionNode", - "FunctionSignature": "Autodesk.DesignScript.Geometry.Vector.Z", - "Id": "c87e7c7f7bc74f25920b2a23a9be4d86", "Inputs": [ { - "Id": "8ad564b79da94307b37dcc757edc585e", + "Id": "407fd992ce8e4cc08f5ea772dac6ec47", "Name": "vector", "Description": "Autodesk.DesignScript.Geometry.Vector", "UsingDefaultValue": false, @@ -306,7 +311,7 @@ ], "Outputs": [ { - "Id": "830ec4801f444ee6bcd5120add465a18", + "Id": "e4d7674335b0498a920034762c897cf5", "Name": "double", "Description": "double", "UsingDefaultValue": false, @@ -315,200 +320,210 @@ "KeepListStructure": false } ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Vector.Z", "Replication": "Auto", - "Description": "Get the Z component of a Vector\n\nVector.Z: double" - }, - { - "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", - "NodeType": "CodeBlockNode", - "Code": "", - "Id": "0e491365773d425ea5574210459832c5", - "Inputs": [], - "Outputs": [], - "Replication": "Disabled", - "Description": "Allows for DesignScript code to be authored directly" + "Description": "Get the Z value of a vector.\n\nVector.Z: double" } ], "Connectors": [ { - "Start": "c1133eb4143e4c92af52bd41231b146e", - "End": "ac92e80c505d4ea7a68ad8a2d2a1696c", - "Id": "184d86e724914fe59465c9088c636adf" + "Start": "c2b8f39bd790430abb674a638434cd9e", + "End": "ae0213ab90ae49b1976acdd808529d08", + "Id": "29f48636c6e240a997561f96b6366a88", + "IsHidden": "False" }, { - "Start": "f131975a02c441c5ab83a4fa4a7ea197", - "End": "e379b0273c0c4fa68865357988981c9e", - "Id": "c364452be3744960965ad43a2a5e3efb" + "Start": "771aa1583f8f4d0aa2e54281badadb7e", + "End": "df26943265d94874983d0fda2ea969d9", + "Id": "ca7271f7c2d44ccb82862a7afec7786b", + "IsHidden": "False" }, { - "Start": "f131975a02c441c5ab83a4fa4a7ea197", - "End": "45c771ee4e76467698c6facc569b7201", - "Id": "679ed38a4d1446edab2808b78c35541b" + "Start": "771aa1583f8f4d0aa2e54281badadb7e", + "End": "1dea5a23a8164e50807586d6683f7cbb", + "Id": "b2dc53e9a99444229f2485aed182bfd0", + "IsHidden": "False" }, { - "Start": "f131975a02c441c5ab83a4fa4a7ea197", - "End": "8ad564b79da94307b37dcc757edc585e", - "Id": "9ddac0df12bd4e05bb8c988f447bfc7f" + "Start": "771aa1583f8f4d0aa2e54281badadb7e", + "End": "407fd992ce8e4cc08f5ea772dac6ec47", + "Id": "0d22eea670ff466da13d1366752116c9", + "IsHidden": "False" }, { - "Start": "569c7ccdca3c48208fbcd782ff518863", - "End": "37ee545a12794760b154f31baeb51792", - "Id": "7fbbf3e698af4afda114cb3a19d5b686" + "Start": "65452d1995af40ae9291b2315b65714a", + "End": "e4ff7d8b6108466497372a9f2e941d89", + "Id": "d6093af411824a6abe80e61a44b279f1", + "IsHidden": "False" }, { - "Start": "e972f628bc96487c8c92c5d261de7109", - "End": "efa6a03474ce4049863bca3e1e579aba", - "Id": "a725762fdd2f4f66823ad1aa638381a4" + "Start": "2faccf4036ba47c59c1fb4e0c5994e06", + "End": "010922a510d646039886e1369c865e88", + "Id": "50ec043b15124d469ca0badd5c239591", + "IsHidden": "False" }, { - "Start": "e972f628bc96487c8c92c5d261de7109", - "End": "33dee35212394145b35adaa7cf64936c", - "Id": "02817af73ee346b28b4e66fe007198be" + "Start": "2faccf4036ba47c59c1fb4e0c5994e06", + "End": "20a559de5f5349c1889e1266c170b85a", + "Id": "0d914c03563b44d79f7a3e194d951e69", + "IsHidden": "False" }, { - "Start": "270e223431c7402a8d4dbbd4ea7cf0ed", - "End": "b88e4335c7974225a8fd857da44faaa1", - "Id": "77c4503ba76d4ae186ebb4d992784f94" + "Start": "92b0e600812742d3993ccae8428555a8", + "End": "e3637b9c33e543d18bda072d74f064bc", + "Id": "6348f49b51604b00bd6f85857871f4ab", + "IsHidden": "False" }, { - "Start": "4a982f361d254845b39b069c7597f1cf", - "End": "397c7d5b87e541539e2f2557e003c91f", - "Id": "011cca1bc57f4f448c9bf0f6d13ce18c" + "Start": "6166473e124d4d9b836aef1a14a13565", + "End": "7d8e44c48adb48bf996ed3b2f77a26f0", + "Id": "6681ed0730ca4c1b9567a636922fa1a5", + "IsHidden": "False" }, { - "Start": "830ec4801f444ee6bcd5120add465a18", - "End": "ba3b3f405e6c4682aeb8aaa5e0d5d40b", - "Id": "bb7f90ecb81f4a35a0113a3e7a544454" + "Start": "e4d7674335b0498a920034762c897cf5", + "End": "a440b288f13a43f498fa1cd8d3332b41", + "Id": "ce330dc028f3482a91d781d8c0d45a13", + "IsHidden": "False" } ], "Dependencies": [], + "NodeLibraryDependencies": [], + "Thumbnail": "", + "GraphDocumentationURL": null, + "ExtensionWorkspaceData": [ + { + "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", + "Name": "Properties", + "Version": "2.19", + "Data": {} + } + ], + "Author": "", + "Linting": { + "activeLinter": "None", + "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", + "warningCount": 0, + "errorCount": 0 + }, "Bindings": [], "View": { "Dynamo": { "ScaleFactor": 1.0, "HasRunWithoutCrash": true, "IsVisibleInDynamoLibrary": true, - "Version": "2.0.1.5055", - "RunType": "Automatic", + "Version": "2.19.0.5742", + "RunType": "Manual", "RunPeriod": "1000" }, "Camera": { - "Name": "Background Preview", - "EyeX": -2.022646427154541, - "EyeY": 8.1483144760131836, - "EyeZ": 4.4798989295959473, - "LookX": 2.7799487113952637, - "LookY": -7.4253988265991211, - "LookZ": -12.051481246948242, - "UpX": 0.0716925710439682, - "UpY": 0.94776839017868042, - "UpZ": -0.31079769134521484 + "Name": "_Background Preview", + "EyeX": -11.20389461517334, + "EyeY": 17.720888137817383, + "EyeZ": 21.985492706298828, + "LookX": 6.20389461517334, + "LookY": -6.7208881378173828, + "LookZ": -29.985492706298828, + "UpX": 0.0, + "UpY": 1.0, + "UpZ": 0.0 }, + "ConnectorPins": [], "NodeViews": [ { - "ShowGeometry": true, + "Id": "b743a19a2230487b8e5cf55683b8e880", "Name": "Line.ByStartPointDirectionLength", - "Id": "6d1ee31ae12c4eab8b51c20d47755015", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 3725.2175766366431, - "Y": 3819.89312774838 + "ShowGeometry": true, + "X": 3710.031881419729, + "Y": 3711.2021157451677 }, { - "ShowGeometry": true, + "Id": "b7f9cd398d7f4f2299ab4940d217f2a2", "Name": "Watch", - "Id": "9b79cf50ce83432bbe01330522ae3dfb", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 3530.3145161311227, - "Y": 3913.3102894390863 + "ShowGeometry": true, + "X": 3737.6603860926266, + "Y": 4012.7184708853547 }, { - "ShowGeometry": true, + "Id": "1bb4946e914245bba169bfc501e18bb9", "Name": "Code Block", - "Id": "b2f274f8a001463b84f919669986dec5", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 2708.8970724672727, - "Y": 3859.5742314161466 + "ShowGeometry": true, + "X": 2642.6603860926266, + "Y": 3900.2009708853548 }, { - "ShowGeometry": true, + "Id": "c827651eef88487ab612e34b04f6e15c", "Name": "Vector Scale", - "Id": "b8fc629975a445ffa681797e35fd8042", "IsSetAsInput": true, "IsSetAsOutput": false, "Excluded": false, - "X": 2655.10319554861, - "Y": 4094.25408697423 + "ShowGeometry": true, + "X": 2634.9244047842153, + "Y": 4096.3983774274111 }, { - "ShowGeometry": true, + "Id": "539bde5f63bb4679b741a1efabb947b4", "Name": "Vector.Scale", - "Id": "5cc0666e903141948c079c526d64b536", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 3007.80233960227, - "Y": 4069.34975810021 + "ShowGeometry": true, + "X": 3096.1860870272058, + "Y": 4106.3399662124575 }, { - "ShowGeometry": true, + "Id": "721fe57caf5546fc9fb5fe2a0a6a0608", "Name": "Watch", - "Id": "beb23d6dcc2f4a9a85d81f988ba6b3b1", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 3528.9683361919829, - "Y": 4016.4843387362462 + "ShowGeometry": true, + "X": 3737.6603860926266, + "Y": 4164.7184708853547 }, { - "ShowGeometry": true, + "Id": "ef904e758e524ac08e86d1b3b03d2286", "Name": "Vector.Length", - "Id": "b0cc6cb7929c44e7852b0f68ff15f88f", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 3338.96260462975, - "Y": 4159.54381402233 + "ShowGeometry": true, + "X": 3432.9758066533741, + "Y": 3871.1390316330185 }, { - "ShowGeometry": true, + "Id": "5138f09bfa184eeb80877b29f8323917", "Name": "Vector.Z", - "Id": "7577e97b30a74957b1bf28e693c48894", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 3267.7750376260924, - "Y": 4016.4843387362462 + "ShowGeometry": true, + "X": 3429.6603860926266, + "Y": 4164.7184708853547 }, { - "ShowGeometry": true, + "Id": "43f9a7cfc61d42dd84ed1b6b9409b219", "Name": "Vector.Z", - "Id": "c87e7c7f7bc74f25920b2a23a9be4d86", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 3266.778264681403, - "Y": 3913.3102894390863 - }, - { "ShowGeometry": true, - "Name": "Code Block", - "Id": "0e491365773d425ea5574210459832c5", - "IsSetAsInput": false, - "IsSetAsOutput": false, - "Excluded": false, - "X": 2809.0, - "Y": 4202.0 + "X": 3429.6603860926266, + "Y": 4014.7184708853547 } ], "Annotations": [], - "X": -2654.4358752323133, - "Y": -3572.9092596659311, - "Zoom": 1.0032375029116336 + "X": -1625.3404083055402, + "Y": -2504.6476668377768, + "Zoom": 0.71455759610627723 } } \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Z.md b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Z.md index b46ac1f155b..13a3268f8e4 100644 --- a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Z.md +++ b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Z.md @@ -1,7 +1,9 @@ ## In Depth -Z returns a double representing a reference point's Z coordinate value in the Revit conceptual design environment. +`Vector.Z` returns a double representing a reference point’s Z coordinate value. + +In the example below, two `Vector.Z` nodes are used to compare the Z coordinate values of an original and scaled vector. + ___ ## Example File -![Z](./Autodesk.DesignScript.Geometry.Vector.Z_img.jpg) - +![Vector.Z](./Autodesk.DesignScript.Geometry.Vector.Z_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Z_img.jpg b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Z_img.jpg index bfda9dc77ba..f97da7a4d9c 100644 Binary files a/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Z_img.jpg and b/doc/distrib/NodeHelpFiles/Autodesk.DesignScript.Geometry.Vector.Z_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/KLFVJ5DI7APVNODARMSE3JM5C27DG62OXUUQRS3HCDTZYO6IBOZA.md b/doc/distrib/NodeHelpFiles/KLFVJ5DI7APVNODARMSE3JM5C27DG62OXUUQRS3HCDTZYO6IBOZA.md index 5d49cf86dd1..83b3d61a162 100644 --- a/doc/distrib/NodeHelpFiles/KLFVJ5DI7APVNODARMSE3JM5C27DG62OXUUQRS3HCDTZYO6IBOZA.md +++ b/doc/distrib/NodeHelpFiles/KLFVJ5DI7APVNODARMSE3JM5C27DG62OXUUQRS3HCDTZYO6IBOZA.md @@ -1,7 +1,9 @@ ## In Depth -Add in-depth information about ByOriginVectors (origin, xAxis, yAxis, zAxis)... +`CoordinateSystem.ByOriginVectors (origin, xAxis, yAxis, zAxis)` returns a new CoordinateSystem at an input origin point with input X, Y, and Z axes. + +In the example below, the CoordinateSystem is placed at an origin with new vectors for the X, Y, and Z axes. The result is a CoordinateSystem rotated relative to the original CoordinateSystem. ___ ## Example File