MCPcopy
hub / github.com/CadQuery/cadquery / val

Method val

cadquery/cq.py:411–418  ·  view source on GitHub ↗

Return the first value on the stack. If no value is present, current plane origin is returned. :return: the first value on the stack. :rtype: A CAD primitive

(self)

Source from the content-addressed store, hash-verified

409 return self
410
411 def val(self) -> CQObject:
412 """
413 Return the first value on the stack. If no value is present, current plane origin is returned.
414
415 :return: the first value on the stack.
416 :rtype: A CAD primitive
417 """
418 return self.objects[0] if self.objects else self.plane.origin
419
420 def _getTagged(self: T, name: str) -> T:
421 """

Callers 15

toOCCMethod · 0.95
workplaneMethod · 0.95
toSvgMethod · 0.95
_repr_javascript_Method · 0.95
mirrorMethod · 0.45
_sweepMethod · 0.45
_queryMethod · 0.45
exportSVGFunction · 0.45
showablesFunction · 0.45
test_repr_javascriptMethod · 0.45
makeCubeFunction · 0.45
test_showFunction · 0.45

Calls

no outgoing calls

Tested by 15

showablesFunction · 0.36
test_repr_javascriptMethod · 0.36
test_showFunction · 0.36
testCompoundCenterMethod · 0.36
test_face_interfaceFunction · 0.36
test_modesFunction · 0.36
test_selectorsFunction · 0.36
test_valFunction · 0.36
test_bool_opsFunction · 0.36
test_exportFunction · 0.36
fFunction · 0.36
test_sortFunction · 0.36