Announcement

Collapse
No announcement yet.

extract profile and/or clipped 3D model

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • extract profile and/or clipped 3D model

    Dear Mike,
    Dear All,

    please, can You suggest me if there is a way to extract the profile and the remaining visible 3D model part:
    using the "ClipplaneDragger example" as in a Your test project (here attached Test_ClipPlane.zip ), i can "cut" the Robocop model as i want and i like to extract at least, the remaining visible 3D part model after clipping itself.

    Thank You in advance.

    Best Regards,
    Vincenzo

  • #2
    Dear All,
    have You any news?

    Comment


    • #3
      Originally posted by [email protected] View Post
      please, can You suggest me if there is a way to extract the profile and the remaining visible 3D model part:
      using the "ClipplaneDragger example" as in a Your test project (here attached [ATTACH]n4952[/ATTACH] ), i can "cut" the Robocop model as i want and i like to extract at least, the remaining visible 3D part model after clipping itself.
      Hi Vincenzo,
      I suggest to modify/adapt the helper class PlaneGeometryIntersection. The source code is provided in $OIVHOME/source/Medical/nodes.
      (I know, why is it in a "Medical" directory? It's a long story... :-)
      As provided, this node computes the intersection between a scene graph and a plane and renders the intersection (profile). The 'plane' field can be connected from a clip plane or dragger, so it's very convenient.

      The method PlaneGeometryIntersectionImpl::triangleCB() is called for each triangle in the scene graph.
      For each triangle, it calls the method PlaneGeometryIntersectionImpl::intersectTri() to compute the intersection of the triangle with the plane (m_plane).
      Note that the return value from intersectTri() also tells you if the triangle is completely in front of or behind the plane.
      Currently, the triangleCB simply ignores triangles that do not intersect the plane and computes an intersection "line" for triangles that intersect the plane.

      You could easily modify this code to collect the visible (unclipped) triangles and also compute clipped triangles (instead of lines) for the intersecting triangles.
      Regards,
      Mike

      Comment


      • #4
        Dear Mike,
        thank You very much!!
        Your suggestions and help are very precious.

        I'll take a look to suggested example.

        Best Regards,
        Vincenzo

        Comment

        Working...
        X