- 博客(29)
- 资源 (31)
- 收藏
- 关注
原创 how to move pivot to origin
3 Simple steps: 1) click icon to open tool setting, then unfold the Move Settings, click Edit Pivot, Reset, Edit Pivot. 2) snap the object to the world origin using grid snap 3) Freeze tr
2016-06-30 19:31:07 618
转载 Change Language in OS but keep Maya UI in English
Right-click on the My Computer icon on the Windows Desktop, and select Properties from the drop-down list that appears.Note: On Windows 7, right-click your computer name and select Properties, the
2016-06-30 19:21:51 1170
原创 generating selection dmat for igllib
mylist = [0] * 1800f_in = open("C:/log/2016_06_29/auto/face.txt") f_out = open("C:/log/2016_06_29/auto/face.o.txt", "w") lines = f_in.readlines() for line in lines: numbers =
2016-06-30 01:56:08 449
原创 Increase the ordinal number at the beginning of each line
import ref_in = open("C:/log/2016_06_29/male1.1.tgf") f_out = open("C:/log/2016_06_29/male1.0.tgf", "w") lines = f_in.readlines()for line in lines: num = int(re.match(r"\d+", line)
2016-06-29 21:37:18 491
转载 search vs. match
7.2.5.3. search() vs. match()Python offers two different primitive operations based on regular expressions: re.match() checks for a match only at the beginning of the string, while re.search() c
2016-06-29 21:13:45 458
原创 how to create igllib project independently(effective on 28/6/2016)
Here, we use 401 as our example.1. build a new console project, here we name it as "testigl", then add new file named main.cpp and copy 401 source file into this file.2. add include directories:
2016-06-28 19:36:51 636
原创 401 biharmonic deformation
let us look at the definition of biharmonic deformation first:Then take a look at the definition of biharmonic deformation fieldsThe difference between them is Biharmonic surface works
2016-06-28 00:23:02 2646 1
原创 some formulas for bloging
⎡⎣12(A+A′)AeqA′eqBeq⎤⎦[Xλ]=[−BBeq]\begin{bmatrix}\frac{1}{2}(A+A') &A_{eq}'\\A_{eq} &Beq\end{bmatrix}\begin{bmatrix}X \\\lambda \end{bmatrix}=\begin{bmatrix}-B \\Beq\end{bmatrix}
2016-06-27 22:12:47 360
转载 igl::cat
在dim维上,对A和B进行连接。如果dim为1,则将A,B按垂直方向堆叠,如果dim为2,则将A,B按水平方向堆叠。template IGL_INLINE void igl::cat( const int dim, const Eigen::MatrixBase & A, const Eigen::MatrixBase & B, MatC & C){ asse
2016-06-23 19:45:10 647
转载 slice
将矩阵X的 一些行和一些列提取出来形成矩阵Y,其他行索引和列索引分别存于R,Ctemplate < typename DerivedX, typename DerivedR, typename DerivedC, typename DerivedY>IGL_INLINE void igl::slice( const Eigen::PlainObjectBase
2016-06-23 19:29:35 810
原创 stable_partition
quote from : http://en.cppreference.com/w/cpp/algorithm/stable_partitionstd::stable_partition C++ Algorithm library Defined in header
2016-06-23 17:24:49 667
原创 Laplacian interpolation implementation in matlab
Some time ago, I quoted a passage from a website which is able to give a general idea about the Laplacian interpolation. The address is http://blog.csdn.net/seamanj/article/details/50701112Here, I wan
2016-06-23 00:56:54 776
转载 biharm_solve_with_factor
function [xV] = biharm_solve_with_factor( ... L, U, P, Q, R, S, M, F, xV, Omega, N0, N1, bndtype, reduction,BZ1,V) % Solves Ax = b, where A is factored as PR\AQ = LU and x is the new % coordin
2016-06-22 01:44:22 432
转载 biharm_factor_system
function [L,U,P,Q,R, S, M] = biharm_factor_system( ... V, ... F, ... bndtype, ... masstype, ... reduction, ... Omega, ... N0, ... N1) % [L,U,P,Q,R, S, M] = biharm_factor_system( ...
2016-06-22 00:36:33 393
转载 display_domain
function display_domain(F,V,Omega,N0,N1,N2,outside_region_of_interest,phong)%% See corresponding paper: "Mixed finite elements for variational surface% modeling" by Alec Jacobson, Elif Tosun, Olga
2016-06-21 23:22:13 337
转载 layers_from_handle
function [Omega,N0,N1,N2,outside_region_of_interest ] = ... layers_from_handle( ... vertex_count, ... F, ... H) % Given a Face index list and list of vertex indices in a handle (can be
2016-06-21 23:07:36 356
转载 tsurf
function tsurf(F,V,vertex_indices,face_indices) % trisurf wrapper % F: list of faces #F x 3 % V: vertex positiosn #V x 3 or #V x 2 % vertex_indices: show vertex indices on plot %
2016-06-21 21:47:36 458
转载 create_regular_grid
function [F, UV, res, edge_norms] = ... create_regular_grid(xRes, yRes, xWrap, yWrap, near, far)% Creates list of triangle vertex indices for a rectangular domain,% optionally wrapping around in X
2016-06-21 21:32:13 943
原创 Mixed Finite Elements for Variational Surface Modeling
paper source { formula 5 LB=12<v,v>Ω0+<λ,Δu−v>Ω0=12<v,v>Ω0−<λ,v>Ω0+<λ,Δu>Ω0L_B=\frac{1}{2}<v,v>_{\Omega_0}+<\lambda,\Delta u-v>_{\Omega_0}=\frac{1}{2}<v,v>_{\Omega_0}-<\lambda,v>_{\Omega_0}+<\lambda,
2016-06-20 23:20:21 636
原创 add line order to each line and remove the last match of each line
import ref_in = open("C:/work_files/libigl/tutorial/shared/male1.tgf") f_out = open("C:/work_files/libigl/tutorial/shared/male1.o.tgf", "w") for row in range(1,17914): line = f_in.readline
2016-06-20 18:03:09 445
原创 find out the last match position
import rere.search("pattern(?!.*pattern)", "target_text")orimport rere.findall("pattern", "target_text")[-1]import reString = "This is an example sentence, it is for demonstration only"
2016-06-20 18:00:28 322
原创 exchange two numbers in each line
f_in = open("C:/work_files/libigl/tutorial/shared/exchange.txt") f_out = open("C:/work_files/libigl/tutorial/shared/exchange.o.txt", "w") for row in range(0,29620): line = f_in.readline()
2016-06-20 17:24:49 359
原创 append a string to each line
infile_name = "C:/work_files/libigl/tutorial/shared/male1.mesh"outfile_name = "C:/work_files/libigl/tutorial/shared/male1.mesh.o"string_to_add = " 0"with open(infile_name, 'r') as f: file_line
2016-06-20 17:14:08 412
原创 how to produce .mesh .tgf file for 403_BoundedBiharmonicWeights_bin
1. First, assume you have an .obj file, you can download or make one from maya2. then convert it into .off file in meshlab.3. after that using Tetgen to generate tetrahetras by typing: tetgen -pqY
2016-06-18 03:43:37 1023 2
转载 libigl file formats
libigl file formats.bf ASCII files for representing skeletal bone "forests".dmat uncompressed ASCII/binary files for dense matrices.ele Element (triangle or tet) list. This format comes in similar
2016-06-17 01:31:05 1018
原创 solve mass matrix in matlab
note: this passage serves for the analysis of Alec Jacobson’s thesis1. what’s mass matrixAccording to (2.50), mass matrix is given by: Mij=∫ΩϕiϕjdAM_{ij}=\int_\Omega\phi_i\phi_jdA2. matlab code analys
2016-06-06 23:32:31 1721
原创 ex3_3 Equality constrains and unrestricted variables
matlab source code:% Ex3_3.m% Example 3.3% Optimization Using MATLAB by P.Venkataraman%% Using drawLine.m %drawLine(0,6,1,1,5,'l');drawLine(0,6,2,1,4,'e');drawLine(0,6,1,1,1,'g');drawLine(
2016-06-03 21:33:54 2690
原创 Bounded Biharmonic Weigths for Real-Time Deformation
3.1 Formulation { First of all, let me explain the physical meaning of the objective function. The function tries to make the weight of each anchor point on each point have least changed. The ideal
2016-06-03 03:31:23 1618 2
转载 std::slice
std::sliceclass slice;Valarray slice selectorThis class represents a valarray slice selector. It does not contain nor refers to any element - it only describes a selection of elements to
2016-06-02 19:17:25 864
Farthest Sampling on 3D meshes with mesh kept based on diffusion distance
2016-08-13
Fast Marching on 3D Meshes with diffusion distance
2016-08-13
Farthest Sampling on 3D meshes with mesh kept
2016-08-03
princal component analysis implemented in matlab
2016-07-09
as-conformal-as-possible surface registration
2016-07-07
softmax regression
2015-11-20
3D_Shader_CubeEnvMapping.rar
2013-08-29
3D_Math_Solve_Matrix_Inverse_by_Seamanj.rar
2013-03-06
3D_Math_Quaternion_by_Seamanj.rar
2013-03-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人