Files
modeling-app/docs/kcl-std/functions/std-planes-yAxis.md
2025-07-01 13:56:16 -05:00

80 KiB

title, subtitle, excerpt, layout
title subtitle excerpt layout
planes::yAxis Function in std::planes Find Y axis of a plane. manual

Find Y axis of a plane.

planes::yAxis(@plane: Plane): Point3d

Arguments

Name Type Description Required
plane Plane The solid whose face is being queried. Yes

Returns

Point3d - A point in three dimensional space.

Examples

mySolid = startSketchOn(XZ)
  |> polygon(numSides = 3, radius = 1, center = [3, 2])
  |> extrude(length = 5)

target = planeOf(mySolid, face = END)

yTarget = planes::yAxis(target)
assert(yTarget[0], isEqualTo = 0)
assert(yTarget[1], isEqualTo = 0)
assert(yTarget[2], isEqualTo = 1)

Rendered example of planes::yAxis 0