sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Intersecting Lines or Faces

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 1.6k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • medeekM Offline
      medeek
      last edited by

      In the model below you can see that the I-joist is supported or touches three separate faces (surfaces).

      http://design.medeek.com/resources/images/truss_su290_800.jpg

      I am trying to figure out a way to code an algorithm that lets me know all of the bearing points along a beam or joist. Starting from one end of the joist, it would give me the location of each of the (left and right boundary line) bearing surfaces.

      If I can figure out a way to do this I can then put together the engineering for joists and beams and add this functionality into the truss plugin.

      An example of a typical simple beam calculation would look something like this:

      404 - File or directory not found.

      favicon

      (design.medeek.com)

      Nathaniel P. Wilkerson PE
      Medeek Engineering Inc
      design.medeek.com

      1 Reply Last reply Reply Quote 0
      • medeekM Offline
        medeek
        last edited by

        I think the first step would be to determine the entities or faces that touch or coincide with the face of the bottom of the joist. Once I gather a list of those entities it should be fairly straightforward to intersect each entity with the joist face and then determine the distance from one end of the joist to the perpendicular line(s) that form the boundary of the intersecting entity's face.

        I think the hard part for me is how to find the entities that touch the face of the bottom of the joist.

        Nathaniel P. Wilkerson PE
        Medeek Engineering Inc
        design.medeek.com

        1 Reply Last reply Reply Quote 0
        • K Offline
          kirill2008
          last edited by

          I think it is possible to use "face.classify_point(pt)" method to find/select entities, that "touch" some face.
          For intersection I would recommend a method "intersect_line_plane" from Geom class. Face plane can be simply obtained like "face.plane", edge line like "edge.line", then it is possible to get intersection point like "Geom.intersect_line_plane". Finally it might be useful to make sure that intersection point lies inside of a face boundary using "face.classify_point".

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement