Class: EnfEditor::EEBrepEdge

Inherits:
EECompRepChildElement show all
Includes:
ColorUtils, PropertyUtils, UserPropertyUtils
Defined in:
lib/enfeditor/core_ext/ee_brep.rb,
ext/enfhandler/EnfHandler_wrap2.cxx

Overview

Proxy of C++ EnfEditor::EEBrepEdge class

Instance Method Summary collapse

Methods included from ColorUtils

#has_material_color?, #has_material_color_rgb?, #material_color, #material_color=

Methods included from UserPropertyUtils

#create_user_property, #user_properties

Methods inherited from EEElement

#delete!

Methods inherited from EEBase

#null?

Instance Method Details

#curveEEBrepCurve

Returns curve of edge.

Examples:

# Get curve from edge
edge.curve # => <EEBrepCurve>

Returns:

Since:

  • 0.1.0.0

#display=(value) ⇒ Object

Examples:

# Set display status of element to hide
element.display = false

Parameters:

  • value (Boolean, nil)

    New value or set nil to remove display property

Since:

  • 0.1.0.0



179
180
181
# File 'lib/enfeditor/core_ext/ee_brep.rb', line 179

def display=(value)
  curve.display = value
end

#display?Boolean

Returns display status of element.

Examples:

# Get display status of element
puts element.display?  # => true

Returns:

  • (Boolean)

    Returns display status of element.

Since:

  • 0.1.0.0



172
# File 'lib/enfeditor/core_ext/ee_brep.rb', line 172

def display?; curve.display?; end

#layerInteger?

Returns layer number or nil for none.

Examples:

# Get edge layer number
edge.layer # => 3

Returns:

  • (Integer, nil)

    Returns layer number or nil for none.

Since:

  • 0.1.0.0



155
# File 'lib/enfeditor/core_ext/ee_brep.rb', line 155

def layer; curve.layer; end

#layer=(value) ⇒ Object

Examples:

# Set layer number to 20
element.layer = 20

Parameters:

  • value (Integer, nil)

    New value or set nil to remove layer property.

Since:

  • 0.1.0.0



162
163
164
# File 'lib/enfeditor/core_ext/ee_brep.rb', line 162

def layer=(value)
  curve.layer = value
end

#verticesArray<EEBrepVertex>

Returns vertices in edge.

Examples:

# Get vertices from edge
edge.vertices  # => [<EEBrepVertex>, <EEBrepVertex>]

Returns:

Since:

  • 0.1.0.0



141
142
143
144
145
146
147
# File 'lib/enfeditor/core_ext/ee_brep.rb', line 141

def vertices
  elems = Set.new
  tvertices.each do |tvertex|
    elems << tvertex.vertex
  end
  return elems.to_a
end