Class: EnfEditor::EEBrepVertex

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::EEBrepVertex 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

#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



250
251
252
# File 'lib/enfeditor/core_ext/ee_brep.rb', line 250

def display=(value)
  point.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



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

def display?; point.display?; end

#layerInteger?

Returns layer number or nil for none.

Examples:

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

Returns:

  • (Integer, nil)

    Returns layer number or nil for none.

Since:

  • 0.1.0.0



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

def layer; point.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



233
234
235
# File 'lib/enfeditor/core_ext/ee_brep.rb', line 233

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

#pointEEBrepPoint

Returns point of vertex.

Examples:

vertex.point  # => <EEBrepPoint>

Returns:

Since:

  • 0.1.0.0