What is In-Polyhedron Test?


InPolyedron


InPolyedron is a super handy MATLAB addon. It helps you find out if points are inside a closed surface, even if that surface isn't all nice and neat like a box. Pretty cool, right? Just keep in mind that this tool assumes the normal orientation is pointing outwards. So, if you're working with open surfaces, you might get some strange results because it doesn't check for closed surfaces or the right orientation.



How Does It Work?


When it comes to numerical accuracy, any points that are right on the surface will be counted as being inside. Here's a quick breakdown of the inputs:



  • p: This represents the surface points in an npx3 array.

  • t: These are triangle indexes where the first points are flagged as one in an ntx3 array.

  • tnorm: This shows the outward normals of triangles in an ntx3 array.

  • qp: These are the points you want to check, shown in an nqx3 array.



The Output Explained


The output gives you an in: which is an nqx1 logical vector. It tells you if each point is inside (true) or outside (false). So basically, it's a yes or no answer to your query!



Why Use InPolyedron?


If you're doing any work with complex shapes and need to know where your points land, this tool can save you time and effort! Want to give it a try? You can easily download it from SoftPas.


How Download Works

Go to the Softpas website, press the 'Downloads' button, and pick the app you want to download and install—easy and fast!

SoftPas Safety Info
SoftPas

SoftPas is your platform for the latest software and technology news, reviews, and guides. Stay up to date with cutting-edge trends in tech and software development.

Recent

Help

Subscribe to newsletter


© Copyright 2024, SoftPas, All Rights Reserved.