本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearance.Texture()
方法的一些代码示例,展示了YoAppearance.Texture()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoAppearance.Texture()
方法的具体详情如下:
包路径:us.ihmc.graphicsDescription.appearance.YoAppearance
类名称:YoAppearance
方法名:Texture
暂无
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
public static AppearanceDefinition StoneTexture()
{
return Texture("images/stone.jpg");
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
public static AppearanceDefinition EarthTexture()
{
return Texture("images/earth.jpg");
}
代码示例来源:origin: us.ihmc/ihmc-graphics-description
public static AppearanceDefinition StoneTexture()
{
return Texture("images/stone.jpg");
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
public static AppearanceDefinition YoboticsTexture()
{
return Texture("images/yobotics.jpg");
}
代码示例来源:origin: us.ihmc/ihmc-graphics-description
public static AppearanceDefinition YoboticsTexture()
{
return Texture("images/yobotics.jpg");
}
代码示例来源:origin: us.ihmc/ihmc-graphics-description
public static AppearanceDefinition EarthTexture()
{
return Texture("images/earth.jpg");
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
public FloatingObjectBoxRobot(String imageResourcePath)
{
super(FloatingObjectBoxRobot.class.getSimpleName());
qrCodeJoint = new FloatingJoint("object", "object", new Vector3D(), this);
Link qrCodeLink = new Link("object");
qrCodeLink.setMassAndRadiiOfGyration(1.0, 0.1, 0.1, 0.1);
Graphics3DObject qrCodeLinkGraphics = new Graphics3DObject();
// qrCodeLinkGraphics.addCoordinateSystem(2.0);
double cubeLength = 1.0;
qrCodeLinkGraphics.translate(0.0, 0.0, -0.99 * cubeLength);
AppearanceDefinition cubeAppearance = YoAppearance.Texture(imageResourcePath);
qrCodeLinkGraphics.addCube(cubeLength * 0.98, cubeLength * 1.01, cubeLength * 0.98, YoAppearance.Yellow());
boolean[] textureFaces = new boolean[] { true, true, false, false, false, false };
qrCodeLinkGraphics.translate(0.0, 0.0, -0.01 * cubeLength);
qrCodeLinkGraphics.addCube(cubeLength, cubeLength, cubeLength, cubeAppearance, textureFaces);
qrCodeLink.setLinkGraphics(qrCodeLinkGraphics);
qrCodeJoint.setLink(qrCodeLink);
addRootJoint(qrCodeJoint);
setGravity(0.0);
}
代码示例来源:origin: us.ihmc/ihmc-model-file-loader
AppearanceDefinition appearance = YoAppearance.Texture("models/road1.jpg");
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
public FloatingFiducialBoxRobot(Fiducial fiducial)
{
super("FloatingFiducialBoxRobot");
qrCodeJoint = new FloatingJoint("qrCode", "qrCode", new Vector3D(), this);
Link qrCodeLink = new Link("qrCode");
qrCodeLink.setMassAndRadiiOfGyration(1.0, 0.1, 0.1, 0.1);
Graphics3DObject qrCodeLinkGraphics = new Graphics3DObject();
// qrCodeLinkGraphics.addCoordinateSystem(2.0);
double cubeLength = 1.0;
qrCodeLinkGraphics.translate(0.0, 0.0, -0.99 * cubeLength);
AppearanceDefinition cubeAppearance = YoAppearance.Texture(fiducial.getPathString());
qrCodeLinkGraphics.addCube(cubeLength * 0.98, cubeLength * 1.01, cubeLength * 0.98, YoAppearance.Yellow());
boolean[] textureFaces = new boolean[] { true, true, false, false, false, false };
qrCodeLinkGraphics.translate(0.0, 0.0, -0.01 * cubeLength);
qrCodeLinkGraphics.addCube(cubeLength, cubeLength, cubeLength, cubeAppearance, textureFaces);
qrCodeLink.setLinkGraphics(qrCodeLinkGraphics);
qrCodeJoint.setLink(qrCodeLink);
addRootJoint(qrCodeJoint);
setGravity(0.0);
}
内容来源于网络,如有侵权,请联系作者删除!