ukaea / paramak

Create parametric 3D fusion reactor CAD models
https://paramak.readthedocs.io/en/main/
37 stars 12 forks source link

new parametric shape #750

Open shimwell opened 3 years ago

shimwell commented 3 years ago

I keen having to make this extruded slice shape and was thinking it would be handy to have a new parametric shape to make this easier

Currently I am doing the following

sector_angle_size = 20

cutting_wedge = paramak.CuttingWedge(
            height=2000,
            radius=2000,
            rotation_angle=360-sector_angle_size,
            azimuth_placement_angle=angle-(0.5*sector_angle_size)
    )

paramak.ExtrudeMixedShape(
    points = ....
    azimuth_placement_angle= angle-sector_angle_size
    cut = cutting_wedge,
    distance= 40
)

But it would be great to have something like this

paramak.ExtrudedSlice(
    angle=20,
    azimuth_placement_angle = ...
    distance= 40
)

Screenshot from 2021-02-27 01-20-57

RemDelaporteMathurin commented 3 years ago

@Shimwell I don't really get what is extruded here ?

shimwell commented 3 years ago

Perhap I am getting mixed up here but we can make a slice of cake easily. The cake has a rounded rotated edge. This one has a straight edge instead.

The innertfcoilsflat is similar but only allows a simple cross section. I am keen on mixed connections https://paramak.readthedocs.io/en/main/paramak.parametric_components.html#innertfcoilsflat

Screenshot from 2021-02-27 12-30-16