From 89c4085f62c1978f2d4f915d6cac2e70dce9f357 Mon Sep 17 00:00:00 2001 From: vcarlosrb Date: Thu, 27 May 2021 02:18:49 -0500 Subject: [PATCH] fix neck location --- body_measurements/measurement.py | 3 ++- example/example.py | 2 +- setup.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/body_measurements/measurement.py b/body_measurements/measurement.py index a03bcef..33914a3 100644 --- a/body_measurements/measurement.py +++ b/body_measurements/measurement.py @@ -214,6 +214,7 @@ def __init__(self, vertices, faces, steps=0.005, levels=[-1.5, 1.5]): _, self.armpits_location, _ = getArmpits(self.sections) _, self.crotch_location, _ = getCrotch(self.sections) _, self.hip_location, _ = getHip(self.sections, self.crotch_location) + _, self.neck_location, _ = getNeck(self.sections) def getMeasurements(self): weight = getWeight(self.mesh) @@ -260,4 +261,4 @@ def neck(self): return getNeck(self.sections) def neckToHip(self): - return getNeckHipLength(neck_location, self.hip_location, self.steps) + return getNeckHipLength(self.neck_location, self.hip_location, self.steps) diff --git a/example/example.py b/example/example.py index d17e21d..5fc8dd4 100644 --- a/example/example.py +++ b/example/example.py @@ -2,7 +2,7 @@ import numpy as np import os -from body_measurements_copy.measurement import Body3D +from body_measurements.measurement import Body3D current_dir = os.path.dirname(os.path.realpath(__file__)) data_dir = os.path.join(current_dir, 'data') diff --git a/setup.py b/setup.py index d9df923..507db43 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup -VERSION = '1.1.0' +VERSION = '1.1.1' setup( name = 'body_measurements',