ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get the (2D) projection of a solid?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
maisoui
606 Views, 2 Replies

How to get the (2D) projection of a solid?

Hi,

 

After several tests / research, I still can not correctly calculate the (2D) projection of a solid. For example, I want to obtain a circle/ellipse for a sphere (with or without obscured lines) (something similar to command FLATSHOT). I tried to use Brep API, but without success (execution time very very long or eDegeneratedTopology error).

 

My goal is to display any projection of a given solid in a custom entity. Perhaps there is a simple way in subWorldDraw or subViewportDraw?

 

Several posts in the forum talks about the same topic, but were never answered.

Any suggestions are welcomed. Regards,

--
Jonathan
2 REPLIES 2
Message 2 of 3
dgorsman
in reply to: maisoui

I *think* what you're looking for is the HLR API (hidden line removal). 

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Message 3 of 3
maisoui
in reply to: dgorsman

Perfect. This is exactly what I was looking for. After reading the few Hlr examples that come with the API, I was able to implement a 2D projection of a solid, and it computes fast.
Many thanks for your help.
Regards,

--
Jonathan

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost