Skip to content

Commit

Permalink
Align with changes in Structure_Engine
Browse files Browse the repository at this point in the history
  • Loading branch information
IsakNaslundBh authored and Fraser Greenroyd committed Jan 25, 2022
1 parent 2381c63 commit c46ad26
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static IGeometry GeometricalRepresentation(this Node node, Representation
}

if (node.Support == null || !reprOptions.Detailed0DElements) // If there is no support information, or by choice...
return BH.Engine.Structure.Query.Position(node); // ...just return the representation for the point.
return node.Position; // ...just return the representation for the point.

// -------------------------------------------- //
// -------- Compute the representation -------- //
Expand Down Expand Up @@ -93,7 +93,7 @@ public static IGeometry GeometricalRepresentation(this Node node, Representation

CompositeGeometry compositeGeometry = new CompositeGeometry();

Sphere sphere = BH.Engine.Geometry.Create.Sphere(BH.Engine.Structure.Query.Position(node), radius);
Sphere sphere = BH.Engine.Geometry.Create.Sphere(node.Position, radius);
compositeGeometry.Elements.Add(sphere);

double coneHeight = 4 * radius;
Expand Down

0 comments on commit c46ad26

Please sign in to comment.