Class: EnfEditor::EEModelSession

Inherits:
EEBase
  • Object
show all
Defined in:
lib/enfeditor/core_ext/ee_model.rb,
ext/enfhandler/EnfHandler_wrap2.cxx

Overview

Proxy of C++ EnfEditor::EEModelSession class

Instance Method Summary collapse

Methods inherited from EEBase

#null?

Instance Method Details

#componentsArray<EEComponent> Also known as: component_list

Returns all the components in model.

Examples:

# Log name of all the components
model.components.each do |component|
  puts component.name
end

Returns:

  • (Array<EEComponent>)

    Returns all the components in model.

Since:

  • 0.1.0.0

#edgesArray<EEBrepEdge>

Returns all the edges in model including isolated edges.

Examples:

# Log layer number of all the edges
session.model.edges.each do |edge|
  puts edge.layer
end

Returns:

  • (Array<EEBrepEdge>)

    Returns all the edges in model including isolated edges.

Since:

  • 0.1.0.0

#facesArray<EEBrepFace>

Returns all the faces in model including isolated faces.

Examples:

# Log layer number of all the faces
session.model.faces.each do |face|
  puts face.layer
end

Returns:

  • (Array<EEBrepFace>)

    Returns all the faces in model including isolated faces.

Since:

  • 0.1.0.0

#isolated_edgesArray<EEBrepEdge>

Returns all the isolated edges in model.

Examples:

# Log layer number of all the isolated edges
session.model.isolated_edges.each do |isolated_edge|
  puts isolated_edge.layer
end

Returns:

  • (Array<EEBrepEdge>)

    Returns all the isolated edges in model.

Since:

  • 0.1.0.0

#isolated_facesArray<EEBrepFace>

Returns all the isolated faces in model.

Examples:

# Log layer number of all the isolated faces
session.model.isolated_faces.each do |isolated_face|
  puts isolated_face.layer
end

Returns:

  • (Array<EEBrepFace>)

    Returns all the isolated faces in model.

Since:

  • 0.1.0.0

#isolated_verticesArray<EEBrepVertex>

Returns all the isolated vertices in model.

Examples:

# Log layer number of all the isolated vertices
session.model.isolated_vertices.each do |isolated_vertex|
  puts isolated_vertex.layer
end

Returns:

  • (Array<EEBrepVertex>)

    Returns all the isolated vertices in model.

Since:

  • 0.1.0.0

#top_componentsArray<EEComponent>

Returns top components in model.

Examples:

session.model.top_components.each do |component|
  p component.name
end

Returns:

  • (Array<EEComponent>)

    Returns top components in model.

Since:

  • 0.7.0.0



16
17
18
# File 'lib/enfeditor/core_ext/ee_model.rb', line 16

def top_components
  top_occtree_list.map{|occtree| occtree.owner_component}
end

#verticesArray<EEBrepVertex>

Returns all the vertices in model including isolated vertices and vertices of isolated edges.

Examples:

# Log layer number of all the vertices
session.model.vertices.each do |vertex|
  puts vertex.layer
end

Returns:

  • (Array<EEBrepVertex>)

    Returns all the vertices in model including isolated vertices and vertices of isolated edges.

Since:

  • 0.1.0.0

#volumesArray<EEBrepVolume>

Returns all the volumes in model.

Examples:

# Log layer number of all the volumes
session.model.volumes.each do |volume|
  puts volume.layer
end

Returns:

  • (Array<EEBrepVolume>)

    Returns all the volumes in model.

Since:

  • 0.1.0.0