![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程语言
npupengsir
新手程序员
展开
-
conda与python虚拟环境
conda与python虚拟环境原创 2022-11-25 12:51:18 · 1042 阅读 · 0 评论 -
VTP转OFF
将.vtp格式的文件转为.off格式:1. CMakeLists.txtcmake_minimum_required(VERSION 3.17)PROJECT(VtpToOFF)find_package(VTK REQUIRED)include(${VTK_USE_FILE})add_executable(VtpToOFF MACOSX_BUNDLE VtpToOFF vtkOFFWriter.cxx)if(VTK_LIBRARIES) target_link_libraries(原创 2020-12-27 11:35:10 · 196 阅读 · 0 评论 -
vtk学习笔记
1. numpy转vtkImageDatafrom vtk.util import numpy_supportimport numpy as npimport vtkdef np_array2vtk_image(np_array) depth_arr = numpy_support.numpy_to_vtk(data.ravel(), deep=True, array_type=vtk.VTK_DOUBLE) im_data = vtk.vtkImageData() im_data.S原创 2020-12-24 10:03:13 · 763 阅读 · 0 评论 -
pycharm导入本地py文件
pycharm导入本地文件时出现错误标志unresolved reference但是运行时不报错,可以在要导入文件的目录上右击,然后选择标志为sources root:原创 2020-10-23 03:52:47 · 2594 阅读 · 0 评论