geometry.angle function

Synopsis

float geometry.angle(angleSelector)

Parameters

  • angleSelector
    Selector for the angle calculation. Valid selectors are:
  • Returns

    Angle of the current shape's geometry, depending on the selector, in degrees.

    Azimuth is the horizontal angle measured clockwise from the north, i.e. 90 degrees is east, 180 degrees is south and 270 degrees is west. Azimuth is in the range [0, 360[.
    The geometry.angle(zenith) function returns the same value as ( 90 - geometry.angle(maxSlope) )

    Examples

    nada
    Cone-->
        comp(f) { all : color(geometry.angle(maxSlope) / 90, 0.0, 0.0) Shape. }
    nada
    Cone-->
        comp(f) { all : color(0.5, geometry.angle(azimuth) / 360, 0.5) Shape. }





    geometry.area function

    Synopsis

    float geometry.area()

    float geometry.area(areaSelector)

    Parameters

  • areaSelector
    Selector for the faces to include in the area calculation. Valid selectors are:
  • Returns

    Surface area of the current shape's geometry, depending on the provided area selector.

    The surface area of the geometry is the sum of the area of all its faces.






    geometry.du/dv functions

    Synopsis

    float geometry.du(float uvSet, surfaceParameterization)

    float geometry.dv(float uvSet, surfaceParameterization)

    Parameters

    Returns

    The range (i.e. max - min) spanned by the u- or the v-coordinate, respectively, of the selected uvset.

    Related






    geometry.isClosedSurface function

    Synopsis

    bool geometry.isClosedSurface()

    Returns

    true if the all of the geometry's edges belong to exactly 2 faces.

    Related






    geometry.isConcave function

    Synopsis

    bool geometry.isConcave()

    Returns

    true if the geometry contains at least one concave face, false otherwise.

    Related






    geometry.isInstanced function

    Synopsis

    bool geometry.isInstanced()

    Returns

    True if the current shape's geometry is the instance of an asset, i.e. the geometry has not been altered since the i() operation, false otherwise.

    The geometry.isInstanced() function can be used to e.g. check if an inserted asset was trimmed.

    Related






    geometry.isOriented function

    Synopsis

    bool geometry.isOriented(orientationSelector)

    Parameters

  • orientationSelector
    Selector for the faces to check for. Valid selectors are:
  • Returns

    True if at least one of the geometry's faces matches the orientationSelector, false otherwise.

    The geometry.isOriented function can be used to determine a shape's orientation.

    Related






    geometry.isPlanar function

    Synopsis

    bool geometry.isPlanar(float tolerance)

    Parameters

    Returns

    true if all faces of the geometry are planar (within tolerance, false otherwise.

    Related






    geometry.isRectangular function

    Synopsis

    bool geometry.isRectangular(float tolerance)

    Parameters

    Returns

    true if all faces of the current shape's geometry consist of 4 vertices and contain only right angles, false otherwise. Angles in the range [90-tolerance, 90+tolerance] are considered to be "right".

    Related






    geometry.nEdges function

    Synopsis

    float geometry.nEdges()

    Returns

    The (integral) number of edges of the current shape's geometry.

    Related





    geometry.nFaces function

    Synopsis

    float geometry.nFaces()

    Returns

    The (integral) number of faces of the current shape's geometry.

    Related





    geometry.nHoles function

    Synopsis

    float geometry.nHoles()

    Returns

    The (integral) number of holes (i.e holes in faces) of the current shape's geometry.

    Related






    geometry.nVertices function

    Synopsis

    float geometry.nVertices()

    Returns

    The (integral) number of vertices of the current shape's geometry.

    Related






    geometry.{uMin|uMax|vMin|vMax} functions

    Synopsis

    float geometry.uMin()

    float geometry.uMax()

    float geometry.vMin()

    float geometry.vMax()

    float geometry.uMin(float uvSet)

    float geometry.uMax(float uvSet)

    float geometry.vMin(float uvSet)

    float geometry.vMax(float uvSet)

    Parameters

    Returns

    The minimal or maximal u or v value of the selected uvset (the versions without parameter use uvset 0).




    geometry.volume function

    Synopsis

    float geometry.volume()

    Returns

    Volume of the current shape's geometry.

    Related

    Copyright ©2008-2016 Esri R&D Center Zurich. All rights reserved.