Skip to content

Commit

Permalink
Merge pull request #44 from oberbichler/feature/format
Browse files Browse the repository at this point in the history
Format
  • Loading branch information
oberbichler authored Mar 4, 2021
2 parents 04ee85b + 86a83ed commit b653b56
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Bowerbird/Components/CraftingComponents/BBSectionComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Bowerbird.Components.CraftingComponents
{
public class BBSectionComponent : GH_Component
{
public BBSectionComponent() : base("BB Section", "BBSection", "Create a section model from a mesh" + Util.InfoString, "Bowerbird", "Crafting") { }
public BBSectionComponent() : base("BB Section", "BBSection", "Create a section model from a mesh" + Util.InfoString, "Bowerbird", "Crafting") { }

protected override void RegisterInputParams(GH_InputParamManager pManager)
{
Expand Down Expand Up @@ -50,7 +50,7 @@ protected override void SolveInstance(IGH_DataAccess DA)

var bbox = mesh.GetBoundingBox(false);
var dmax = bbox.Diagonal.Length;

for (int i = 0; i < planes.Count; i++)
{
for (int j = i + 1; j < planes.Count; j++)
Expand All @@ -64,7 +64,7 @@ protected override void SolveInstance(IGH_DataAccess DA)
IntersectPlanes(a, b, out var origin, out var direction);

var cPlane = new Plane(bbox.Center, direction);
origin = (Vector3d)cPlane.ClosestPoint((Point3d)origin);
origin = (Vector3d)cPlane.ClosestPoint((Point3d)origin);

var originA = origin.Map2D(a);
var directionA = direction.Map2D(a);
Expand Down
4 changes: 2 additions & 2 deletions Bowerbird/Curvature/DGridPath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ bool FindDirections(double u, double v, out Vector3d dir1, out Vector3d dir2, ou
e[0] = actA1 * refA1 - refA1.SquareLength;
e[1] = actA2 * refA2 - refA2.SquareLength;
e[2] = 0.5 * (actA1 * refA2 + actA2 * refA1) - refA1 * refA2;

e.Transform(TransformToLocalCartesian(refA1, refA2));
e.Transform(Material);

Expand Down Expand Up @@ -123,7 +123,7 @@ bool FindDirections(double u, double v, out Vector3d dir1, out Vector3d dir2, ou
dir2 = dir1;

var angle = Math.Atan(Math.Sqrt(n2 / n1));

dir1.Rotate(angle, normal);
dir2.Rotate(-angle, normal);

Expand Down
2 changes: 1 addition & 1 deletion Bowerbird/Curvature/PrincipalStressPath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ bool FindDirections(double u, double v, out Vector3d dir1, out Vector3d dir2, ou
e[0] = actA1 * refA1 - refA1.SquareLength;
e[1] = actA2 * refA2 - refA2.SquareLength;
e[2] = 0.5 * (actA1 * refA2 + actA2 * refA1) - refA1 * refA2;

e.Transform(TransformToLocalCartesian(refA1, refA2));
e.Transform(Material);

Expand Down

0 comments on commit b653b56

Please sign in to comment.