Skip to content

在向Scene中添加三角形时list扩展遇到bug #1

Description

@Asukaaaaaa

在relaxrender.points.py中的Point3D_store类的add_point(self,p)方法的下列代码出现bug :
if self.size == self.cindex:
# tmp = np.empty((Points.chunk_size, Points.data_width))
self.data = np.concatenate((self.data,
np.empty((Points.chunk_size, Points.data_width))),
axis=0)

参数Points.data_width=Point3D.data_width + Color.data_width + Vector.data_width
在这里它的值为16,而self.data是一个3列的矩阵,导致拼接报错 @pipehappy1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions