Skip to content

Commit

Permalink
Merge pull request #1039 from hypar-io/dib-mep-version
Browse files Browse the repository at this point in the history
cleanup examples
  • Loading branch information
wynged authored Oct 12, 2023
2 parents 10d8ca2 + be559cc commit 7ba0558
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Elements.MEP/Examples-Create Tree.dib
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

#!csharp

#r "nuget: Hypar.Elements,2.0.0-alpha.15"
#r "nuget: Hypar.Elements.MEP,2.0.0-alpha.15"
#r "nuget: Hypar.Elements.MEP,2.1.0-alpha.8"

#!markdown

Expand Down
7 changes: 3 additions & 4 deletions Elements.MEP/Examples-Routing Tree.dib
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

#!csharp

#r "nuget: Hypar.Elements,2.0.0-alpha.15"
#r "nuget: Hypar.Elements.MEP,2.0.0-alpha.15"
#r "nuget: Hypar.Elements.MEP,2.1.0-alpha.8"

#!markdown

Expand All @@ -18,8 +17,8 @@ var startPoints = new Vector3[] {(-3,10), (-2,5) ,
(4,6), (8,10)};
var endPoint = new Vector3(-5,-3);

var modelPoints = new ModelPoints(startPoints.Concat(new[] {endPoint}).ToList());
return modelPoints;
var circlesAtPoints = startPoints.Select(p => new ModelCurve(new Circle(p, 0.1), BuiltInMaterials.XAxis));
return circlesAtPoints;

#!markdown

Expand Down

0 comments on commit 7ba0558

Please sign in to comment.