OPS

HomeDocsSupport

OPS

Back to docs

GetIntersectBeamsCount

Returns the number of new beams that will be created if the specified list of beams are intersected. This method can be used to get the count of beams that can be used to define the size of the output array while using the API OSGeometryUI::IntersectBeams.

Parameters

  • BeamNosArray: Array of beam numbers. If the array is either null or empty, then all members in the current model will be considered. (Long)
  • dTolerance: Tolerance to be used for finding beam intersection. Should not be a negative value. Unit: meter for Metric and inch for English in Base Unit (float/double).

Return values

  • Returns the number of beams that satisfy the criteria.

Example

from openstaad import Geometry

# Instanciar el módulo Geometry
g = Geometry()

# Obtener el número de nuevos beams que se crearían al intersectar los beams 1, 2 y 3 con una tolerancia de 0.01
count = g.GetIntersectBeamsCount([1, 2, 3], 0.01)
What is OPS?GitHubSupport

© 2024 OpenStaad

Built with Reflex