How to bulid a spiral ?

In OCC, I wanna build a spiral cylinder which like the conductor,there is a solution that ,firstly build serveral points which will make a spiral,and secondly,draw a circle on the plane and extrude it along the cureve,but failed,Can someone give me a help about it?I am eager to see your opinion.

Pawel's picture

Hi Zhi Wang,

you could try:
- BRepOffsetAPI_ThruSections
- BRepOffsetAPI_MakePipe
- looking here http://opencascade.blogspot.de/2009/10/surface-modeling-part1.html

Pawel

tianxiawuzie's picture

Hi,Pawel,thank you for your answer.But unfortunately,I cannot visit the web page you offered, would you mind to offer me some other information about it ? I will be so appreciate it if you can give me an example .

Pawel's picture

Hi Zhi Wang,

I don't think I can summarize the information provided by Roman Lygin under the provided link so I think it would be the best to try to visit the website (examples are given). However, you can also try to browse the provided OCCT examples in order to look how the other two functions I mentioned are used.

Pawel

Fotis Sioutis's picture

Have a look at :

https://sourceforge.net/p/salomegeometry/code/234/tree/trunk/src/GEOMImp...

(look at line 267 and down)(i did not test against the latest occ vesrion, hopefully it will work)