Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align with changes in Structure_Engine #85

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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