@@ -111,7 +111,7 @@ cdef class BiConvex(EncapsulatedPrimitive):
111111 # attach to local root (performed in EncapsulatedPrimitive init)
112112 super ().__init__(lens, parent, transform, material, name)
113113
114- cdef void _calc_geometry(self ):
114+ cdef void _calc_geometry(self ) noexcept :
115115
116116 cdef double radius, radius_sqr
117117
@@ -126,7 +126,7 @@ cdef class BiConvex(EncapsulatedPrimitive):
126126 # edge thickness is the length of the barrel without the curved surfaces
127127 self .edge_thickness = self .center_thickness - (self .front_thickness + self .back_thickness)
128128
129- cdef bint _is_short(self ):
129+ cdef bint _is_short(self ) noexcept :
130130 """
131131 Do the facing spheres overlap sufficiently to build a lens using just their intersection?
132132 """
@@ -245,7 +245,7 @@ cdef class BiConcave(EncapsulatedPrimitive):
245245 # attach to local root (performed in EncapsulatedPrimitive init)
246246 super ().__init__(lens, parent, transform, material, name)
247247
248- cdef void _calc_geometry(self ):
248+ cdef void _calc_geometry(self ) noexcept :
249249
250250 cdef double radius, radius_sqr
251251
@@ -327,7 +327,7 @@ cdef class PlanoConvex(EncapsulatedPrimitive):
327327 # attach to local root (performed in EncapsulatedPrimitive init)
328328 super ().__init__(lens, parent, transform, material, name)
329329
330- cdef void _calc_geometry(self ):
330+ cdef void _calc_geometry(self ) noexcept :
331331
332332 cdef double radius, radius_sqr
333333
@@ -341,7 +341,7 @@ cdef class PlanoConvex(EncapsulatedPrimitive):
341341 # edge thickness is the length of the barrel without the curved surfaces
342342 self .edge_thickness = self .center_thickness - self .curve_thickness
343343
344- cdef bint _is_short(self ):
344+ cdef bint _is_short(self ) noexcept :
345345 """
346346 Does the front sphere have sufficient radius to build the lens with just an intersection?
347347 """
@@ -445,7 +445,7 @@ cdef class PlanoConcave(EncapsulatedPrimitive):
445445 # attach to local root (performed in EncapsulatedPrimitive init)
446446 super ().__init__(lens, parent, transform, material, name)
447447
448- cdef void _calc_geometry(self ):
448+ cdef void _calc_geometry(self ) noexcept :
449449
450450 cdef double radius, radius_sqr
451451
@@ -531,7 +531,7 @@ cdef class Meniscus(EncapsulatedPrimitive):
531531 # attach to local root (performed in EncapsulatedPrimitive init)
532532 super ().__init__(lens, parent, transform, material, name)
533533
534- cdef void _calc_geometry(self ):
534+ cdef void _calc_geometry(self ) noexcept :
535535
536536 cdef double radius, radius_sqr
537537
@@ -546,7 +546,7 @@ cdef class Meniscus(EncapsulatedPrimitive):
546546 # edge thickness is the length of the barrel without the front surface
547547 self .edge_thickness = self .center_thickness - self .front_thickness + self .back_thickness
548548
549- cdef bint _is_short(self ):
549+ cdef bint _is_short(self ) noexcept :
550550 """
551551 Does the front sphere have sufficient radius to build the lens with just an intersection?
552552 """
0 commit comments