Skip to content

Commit

Permalink
Merge branch 'master' into DYN-6898
Browse files Browse the repository at this point in the history
  • Loading branch information
saintentropy authored Nov 14, 2023
2 parents 6e81b19 + 08e5d3f commit 5ea2136
Show file tree
Hide file tree
Showing 49 changed files with 4,052 additions and 138 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## In Depth
ByPointsRadius will return a Cylinder from a start Point, end Point, and radius value. In the example below, adjusting the number sliders will change the point positions as well as the Cylinder's radius.
`Cone.ByPointsRadius` creates a cone geometry from a start point, end point, and a radius value.

In the example below, a dynamic cone around the World Origin is constructed with two number sliders controlling the cone’s height and radius.

___
## Example File

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## In Depth
End Point will return the end point of an input curve. In the example below, we first create a Nurbs Curve using a ByControlPoints node, with a set of randomly generated points as the input. We can find the end point of this curve by using an EndPoint node.
`Cone.EndPoint` returns the apex of a cone, or the center of the top circle of a truncated cone.

In the example below, we create a cone by specifying a Coordinate System and two radii. We then use `Cone.EndPoint` to find the center of the top circle of the cone.

___
## Example File

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## In Depth
Text note height is returned as a double. The height value is relative to the view scale.
`Cone.Height` finds the height of a cone, which is equal to the distance between its start point and end point.

In the example below, we create a cone by specifying a start and end point, as well as a start and end radius. We can then extract the height of the cone with `Cone.Height`.

___
## Example File

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## In Depth
Start Point will return the start point of an input curve. In the example below, we first create a Nurbs Curve using a ByControlPoints node, with a set of randomly generated points as the input. We can find the start point of this curve by using a StartPoint node.
`Cone.StartPoint` finds the center of the base of a cone.

In the example below, we create a cone by specifying a Coordinate System and two radii. We then use `Cone.StartPoint` to find the center of the bottom circle of the cone.

___
## Example File

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## In Depth
Text note height is returned as a double. The height value is relative to the view scale.
`Cuboid.Height` returns the height of the input cuboid. Note that if the cuboid has been transformed to a different coordinate system with a scale factor, this will return the original dimensions of the cuboid, not the world space dimensions. In other words, if you create a cuboid with a width (X-axis) of 10 and transform it to a CoordinateSystem with 2 times scaling in X, the width will still be 10.

In the example below, we generate a cuboid by corners, and then use a `Cuboid.Height` node to find its height.

___
## Example File

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
`Cuboid.Length` returns the length of the input cuboid. Note that if the cuboid has been transformed to a different coordinate system with a scale factor, this will return the original dimensions of the cuboid, not the world space dimensions.

In the example, we generate a cuboid by corners, and then use a `Cuboid.Length` node to find the length.

___
## Example File

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## In Depth
Width returns the horizontal dimension of a rectangular curtain panel as a double.
`Cuboid.Width` returns the width of the input cuboid.

In the example below, we generate a cuboid by corners, and then use a `Cuboid.Width` node to find its width. Note that if the cuboid has been transformed to a different coordinate system with a scale factor, this will return the original dimension of the cuboid, not the world space dimensions.

___
## Example File

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## In Depth
Text note height is returned as a double. The height value is relative to the view scale.
`Cylinder.Height` returns the height of the input cylinder. The height value is relative to the view scale.

In the example below, we generate a cylinder by start point, end point, and radius, and then use a `Cylinder.Height` node to find the height.

___
## Example File

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
`Cylinder.Radius` returns the radius of a cylinder as a double.

In the example below, adjusting the number slider will change the cylinder's radius.

___
## Example File

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## In Depth
BoundingBox will create a bounding box in Dynamo around a Revit element.
`Geometry.BoundingBox` returns a box defined by the geometry it contains. A BoundingBox is not displayed, but it can be returned as a PolySurface by using the `BoundingBox.ToPolySurface` node.

In the example below, a BoundingBox is created for a unioned solid and represented as a PolySurface.

___
## Example File

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@
"ScaleFactor": 1.0,
"HasRunWithoutCrash": true,
"IsVisibleInDynamoLibrary": true,
"Version": "2.19.0.5874",
"Version": "2.19.4.6632",
"RunType": "Automatic",
"RunPeriod": "1000"
},
Expand Down Expand Up @@ -867,8 +867,8 @@
}
],
"Annotations": [],
"X": 33.19331582016116,
"Y": -164.55511612426255,
"Zoom": 0.612283078543345
"X": 84.8489843399085,
"Y": -148.87835110848562,
"Zoom": 0.62740812659763479
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
## In Depth
`ExportToSAT` exports geometry from Dynamo to a SAT file type.
`Geometry.ExportToSAT` exports geometry from Dynamo to a SAT file type. This node is unitless; to specify a unit, use `ExportToSAT`.

In the example below, a PolySurface from the intersection of three spheres can be exported to a SAT file once a file path is selected.

___
## Example File

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
## In Depth
Imports a JSON string and returns an array of imported geometries.
`Geometry.FromSolidDef` imports a Solid Def JSON string and returns an array of imported geometries. It converts the JSON formatted representation back into geometry format. Use `Geometry.ToSolidDef` to convert geometries into a JSON string format.

In the example below, a Solid Def representation is converted into geometry.
___
## Example File



![Geometry.FromSolidDef](./Autodesk.DesignScript.Geometry.Geometry.FromSolidDef_img.jpg)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5ea2136

Please sign in to comment.