WUT_Computer_Science/sightpy/geometry/collider.py
Jakub Poćwiardowski b74883b796
New parsing (#4)
* works for cornell now, will be extended to import others

* works for all scenes

* can load environments and blur them

* minor cleanup

* Example commands added to README.md
2025-01-18 17:31:27 +00:00

17 lines
410 B
Python

import numpy as np
from ..utils.constants import *
from ..utils.vector3 import vec3
from abc import abstractmethod
class Collider:
def __init__(self,assigned_primitive, center):
self.assigned_primitive = assigned_primitive
self.center = center
@abstractmethod
def intersect(self, O, D):
pass
@abstractmethod
def get_Normal(self, hit):
pass