osecore.app.shape.edge

Name

Description

find_edges_connected_to_vertex

Find the edges connected to a vertex.

is_edge_parallel_to_x_axis

Check if the given edge is parallel to the X axis.

is_edge_parallel_to_y_axis

Check if the given edge is parallel to the Y axis.

is_edge_parallel_to_z_axis

Check if the given edge is parallel to the Z axis.


find_edges_connected_to_vertex(vertex: Part.Vertex, edges: List[Part.Edge]) → List[Part.Edge]

Find the edges connected to a vertex.

Parameters
  • vertex (Part.Vertex) – A vertex to find the edges connected to.

  • edges (List[Part.Edge]) – List of edges to search for the vertex.

Returns

A new filtered list of edges that are connected to the vertex.

Return type

List[Part.Edge]

is_edge_parallel_to_x_axis(edge: Part.Edge) → bool

Check if the given edge is parallel to the X axis.

Parameters

edge (Part.Edge) – Edge to check if it’s parallel to the X axis.

Returns

True if parallel to the X axis, False otherwise.

Return type

bool

is_edge_parallel_to_y_axis(edge: Part.Edge) → bool

Check if the given edge is parallel to the Y axis.

Parameters

edge (Part.Edge) – Edge to check if it’s parallel to the Y axis.

Returns

True if parallel to the Y axis, False otherwise.

Return type

bool

is_edge_parallel_to_z_axis(edge: Part.Edge) → bool

Check if the given edge is parallel to the Z axis.

Parameters

edge (Part.Edge) – Edge to check if it’s parallel to the Z axis.

Returns

True if parallel to the Z axis, False otherwise.

Return type

bool