Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Query for edges parallel to the vector or line

konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
Is there a common way to query edges parallel to the specific direction? As workaround I had to use qIntersectsPlane with the direction vector i need and origin specifically chosen, but it isn't very flexible solution.

Comments

  • mahirmahir Member, Developers Posts: 1,307 ✭✭✭✭✭
    I couldn't find an easy way to query this either. You could write your own function that iterates over all linear edges ( qGeometry(qEverything(),GeometryType.LINE) ). It could identify parallel edges by using evTangentLine() to extract a direction vector and then compare that to your input edge using parallelVectors().
  • konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
    @mahir thanks, it looks like more appropriate solution
Sign In or Register to comment.