Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

stripmesh (line1, point1, line2, point2) → List of list of coordinates [[[X coor,Y coor,Z coor],[]],[]]

Given two lines defined by their start and end points, as well as station points on these lines, this function meshes the area between these two lines. It returns a list of points representing the four corners of each mesh.

Example:

Code Block
<O N="stripmeshObject1" T="Project" Category="Functions" TransAlignRule="1">
    <!-- created by ParamML Examples on 8/24/2023 -->
    <P N="line1" V="[[0,0],[15,0]]" />
    <P N="pts1" V="[0,5,12,15]" />
    <P N="line2" V="[[0,5],[12,5]]" />
    <P N="pts2" V="[0,4,8,12]" />
    <P N="mesh" V="stripmesh(line1,pts1,line2,pts2)" />
</O>
Image Added

As demonstrated above, line1 is meshed at the stations that are given in pts1 and line2 is meshed at the stations that are given in pts2 then the area between two lines area meshed using these points.

To view this example in the library, see (https://openbrim.org/app/?incubator=1&author=ParamML_Examples_OpenBrIM+Platform&obj=objida6oe0bxl6aqvo7oyvh16bg )